/** * Create an instance of {@link PersonType } * */ public PersonType createPersonType() { return new PersonType(); }
@Override public Object getProperty(Object object, QName name) throws Exception { PersonType person = (PersonType) object; if("name".equals(name.getLocalPart())) return person.getName(); if("email".equals(name.getLocalPart())) return person.getEmail(); if("link".equals(name.getLocalPart())) return person.getLink(); return null; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PersonType person = factory.createPersonType(); person.setName((String) node.getChildValue("name")); person.setEmail((EmailType) node.getChildValue("email")); person.setLink((LinkType) node.getChildValue("link")); return person; }
@Override public Object getProperty(Object object, QName name) throws Exception { PersonType person = (PersonType) object; if("name".equals(name.getLocalPart())) return person.getName(); if("email".equals(name.getLocalPart())) return person.getEmail(); if("link".equals(name.getLocalPart())) return person.getLink(); return null; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PersonType person = factory.createPersonType(); person.setName((String) node.getChildValue("name")); person.setEmail((EmailType) node.getChildValue("email")); person.setLink((LinkType) node.getChildValue("link")); return person; }
/** * Create an instance of {@link PersonType } * */ public PersonType createPersonType() { return new PersonType(); }