@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; } }
@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; } }