@Override public Object getProperty(Object object, QName name) throws Exception { BoundsType bounds = (BoundsType) object; if("minlat".equals(name.getLocalPart())) return bounds.getMinlat(); if("minlon".equals(name.getLocalPart())) return bounds.getMinlon(); if("maxlat".equals(name.getLocalPart())) return bounds.getMaxlat(); if("maxlon".equals(name.getLocalPart())) return bounds.getMaxlon(); return null; } }
@Override public Object getProperty(Object object, QName name) throws Exception { BoundsType bounds = (BoundsType) object; if("minlat".equals(name.getLocalPart())) return bounds.getMinlat(); if("minlon".equals(name.getLocalPart())) return bounds.getMinlon(); if("maxlat".equals(name.getLocalPart())) return bounds.getMaxlat(); if("maxlon".equals(name.getLocalPart())) return bounds.getMaxlon(); return null; } }