/** * Create an instance of {@link PtType } * */ public PtType createPtType() { return new PtType(); }
/** * <!-- 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; }
@Override public Object getProperty(Object object, QName name) throws Exception { PtType point = (PtType) object; if("lon".equals(name.getLocalPart())) return point.getLon(); if("lat".equals(name.getLocalPart())) return point.getLat(); if("ele".equals(name.getLocalPart())) return point.getEle(); if("time".equals(name.getLocalPart())) return point.getTime(); return null; } }
/** * <!-- 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; }
@Override public Object getProperty(Object object, QName name) throws Exception { PtType point = (PtType) object; if("lon".equals(name.getLocalPart())) return point.getLon(); if("lat".equals(name.getLocalPart())) return point.getLat(); if("ele".equals(name.getLocalPart())) return point.getEle(); if("time".equals(name.getLocalPart())) return point.getTime(); return null; } }
/** * Create an instance of {@link PtType } * */ public PtType createPtType() { return new PtType(); }