/** * Create an instance of {@link GpxType } * */ public GpxType createGpxType() { return new GpxType(); }
/** * <!-- 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; }
@Override public Object getProperty(Object object, QName name) throws Exception { GpxType gpx = (GpxType) object; if("creator".equals(name.getLocalPart())) return gpx.getCreator(); if("metadata".equals(name.getLocalPart())) return gpx.getMetadata(); if("version".equals(name.getLocalPart())) return gpx.getVersion(); if("extensions".equals(name.getLocalPart())) return gpx.getExtensions(); if("wpt".equals(name.getLocalPart())) return gpx.getWpt(); if("rte".equals(name.getLocalPart())) return gpx.getRte(); if("trk".equals(name.getLocalPart())) return gpx.getTrk(); return null; } }
/** * <!-- 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; }
@Override public Object getProperty(Object object, QName name) throws Exception { GpxType gpx = (GpxType) object; if("creator".equals(name.getLocalPart())) return gpx.getCreator(); if("metadata".equals(name.getLocalPart())) return gpx.getMetadata(); if("version".equals(name.getLocalPart())) return gpx.getVersion(); if("extensions".equals(name.getLocalPart())) return gpx.getExtensions(); if("wpt".equals(name.getLocalPart())) return gpx.getWpt(); if("rte".equals(name.getLocalPart())) return gpx.getRte(); if("trk".equals(name.getLocalPart())) return gpx.getTrk(); return null; } }
/** * Create an instance of {@link GpxType } * */ public GpxType createGpxType() { return new GpxType(); }