/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { ExtensionsType et = factory.createExtensionsType(); // TODO somehow I should pack the extension into this bean... return et; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PtsegType ptseg = factory.createPtsegType(); ptseg.getPt().addAll(node.getChildValues(PtType.class)); return ptseg; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { EmailType email = factory.createEmailType(); email.setId((String) node.getAttributeValue("id")); email.setDomain((String) node.getAttributeValue("domain")); return email; }
/** * <!-- 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; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { CopyrightType copyright = factory.createCopyrightType(); copyright.setAuthor((String) node.getChildValue("author")); copyright.setYear((Calendar) node.getChildValue("year")); copyright.setLicense((String) node.getChildValue("license")); return copyright; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PtType point = factory.createPtType(); point.setLon((Double) node.getAttributeValue("lon")); point.setLat((Double) node.getAttributeValue("lat")); point.setEle((Double) node.getChildValue("ele")); point.setTime((Calendar) node.getChildValue("time")); return point; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { LinkType link = factory.createLinkType(); link.setText((String) node.getChildValue("text")); link.setType((String) node.getChildValue("type")); link.setHref((String) node.getChildValue("href")); return link; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { BoundsType bounds = factory.createBoundsType(); bounds.setMinlat((Double) node.getAttributeValue("minlat")); bounds.setMinlon((Double) node.getAttributeValue("minlon")); bounds.setMaxlat((Double) node.getAttributeValue("maxlat")); bounds.setMaxlon((Double) node.getAttributeValue("maxlon")); return bounds; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { GpxType gpx = factory.createGpxType(); gpx.setCreator((String) node.getChildValue("creator")); gpx.setMetadata((MetadataType) node.getChildValue("metadata")); gpx.setVersion((String) node.getChildValue("version")); gpx.setExtensions((ExtensionsType) node.getChildValue("extensions")); gpx.getWpt().addAll(node.getChildValues("wpt")); gpx.getRte().addAll(node.getChildValues("rte")); gpx.getTrk().addAll(node.getChildValues("trk")); return gpx; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { MetadataType metadata = factory.createMetadataType(); metadata.setName((String) node.getChildValue("name")); metadata.setDesc((String) node.getChildValue("desc")); metadata.setAuthor((PersonType) node.getChildValue("author")); metadata.setCopyright((CopyrightType) node.getChildValue("copyright")); metadata.getLink().addAll(node.getChildValues("link")); final Timestamp time = (Timestamp)node.getChildValue("time"); if(time!=null){ final GregorianCalendar calendar= new GregorianCalendar(); calendar.setTime(time); metadata.setTime(calendar); } metadata.setKeywords((String) node.getChildValue("keywords")); metadata.setBounds((BoundsType) node.getChildValue("bounds")); metadata.setExtensions((ExtensionsType) node.getChildValue("extensions")); return metadata; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { EmailType email = factory.createEmailType(); email.setId((String) node.getAttributeValue("id")); email.setDomain((String) node.getAttributeValue("domain")); return email; }
/** * <!-- 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; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { CopyrightType copyright = factory.createCopyrightType(); copyright.setAuthor((String) node.getChildValue("author")); copyright.setYear((Calendar) node.getChildValue("year")); copyright.setLicense((String) node.getChildValue("license")); return copyright; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PtType point = factory.createPtType(); point.setLon((Double) node.getAttributeValue("lon")); point.setLat((Double) node.getAttributeValue("lat")); point.setEle((Double) node.getChildValue("ele")); point.setTime((Calendar) node.getChildValue("time")); return point; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { LinkType link = factory.createLinkType(); link.setText((String) node.getChildValue("text")); link.setType((String) node.getChildValue("type")); link.setHref((String) node.getChildValue("href")); return link; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { BoundsType bounds = factory.createBoundsType(); bounds.setMinlat((Double) node.getAttributeValue("minlat")); bounds.setMinlon((Double) node.getAttributeValue("minlon")); bounds.setMaxlat((Double) node.getAttributeValue("maxlat")); bounds.setMaxlon((Double) node.getAttributeValue("maxlon")); return bounds; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { GpxType gpx = factory.createGpxType(); gpx.setCreator((String) node.getChildValue("creator")); gpx.setMetadata((MetadataType) node.getChildValue("metadata")); gpx.setVersion((String) node.getChildValue("version")); gpx.setExtensions((ExtensionsType) node.getChildValue("extensions")); gpx.getWpt().addAll(node.getChildValues("wpt")); gpx.getRte().addAll(node.getChildValues("rte")); gpx.getTrk().addAll(node.getChildValues("trk")); return gpx; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { MetadataType metadata = factory.createMetadataType(); metadata.setName((String) node.getChildValue("name")); metadata.setDesc((String) node.getChildValue("desc")); metadata.setAuthor((PersonType) node.getChildValue("author")); metadata.setCopyright((CopyrightType) node.getChildValue("copyright")); metadata.getLink().addAll(node.getChildValues("link")); metadata.setTime((Calendar) node.getChildValue("time")); metadata.setKeywords((String) node.getChildValue("keywords")); metadata.setBounds((BoundsType) node.getChildValue("bounds")); metadata.setExtensions((ExtensionsType) node.getChildValue("extensions")); return metadata; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { PtsegType ptseg = factory.createPtsegType(); ptseg.getPt().addAll(node.getChildValues(PtType.class)); return ptseg; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { ExtensionsType et = factory.createExtensionsType(); et.getAny().addAll(node.getChildren()); return et; }