if (att.getIdentifier() != null) { map.put("fid", att.getIdentifier().getID()); } else { map.put("fid", "");
/** @see AbstractComplexBinding#getProperty(java.lang.Object, javax.xml.namespace.QName) */ @Override public Object getProperty(Object object, QName name) throws Exception { if (object instanceof ComplexAttribute) { ComplexAttribute complex = (ComplexAttribute) object; Property property = complex.getProperty(toTypeName(name)); if (property != null && !(property instanceof ComplexAttribute)) { return property.getValue(); } if ("id".equals(name.getLocalPart())) { return complex.getIdentifier(); } } return null; }
@Override public Object getProperty(Object object, QName name) throws Exception { if (GML._Feature.equals(name)) { if (object instanceof SimpleFeature) { return object; } else if (object instanceof FeatureImpl) { ComplexAttribute complex = (ComplexAttribute) object; Identifier ident = complex.getIdentifier(); if (ident == null) { return object; } String id; if (ident instanceof FeatureId) { id = ((FeatureId) ident).getRid(); } else { id = Converters.convert(ident.getID(), String.class); } if (idSet.idExists(id)) { return null; } return object; } else if (object instanceof ComplexAttribute) { return ((ComplexAttribute) object).getProperties().iterator().next(); } } return null; }
Identifier ident = att.getIdentifier(); if (ident == null) { return;
Identifier ident = object.getIdentifier(); if (ident == null) { return;
/** * @see org.geotools.xml.AbstractComplexBinding#getProperty(java.lang.Object, * javax.xml.namespace.QName) */ @Override public Object getProperty(Object object, QName name) throws Exception { if (object instanceof ComplexAttribute) { ComplexAttribute complex = (ComplexAttribute) object; Property property = complex.getProperty(toTypeName(name)); if (property != null && !(property instanceof ComplexAttribute)) { return property.getValue(); } if ("id".equals(name.getLocalPart())) { return complex.getIdentifier(); } } return null; }
@Override public Object getProperty(Object object, QName name) throws Exception { if (GML._Feature.equals(name)) { if (object instanceof SimpleFeature) { return object; } else if (object instanceof FeatureImpl) { ComplexAttribute complex = (ComplexAttribute) object; Identifier ident = complex.getIdentifier(); if (ident == null) { return object; } String id; if (ident instanceof FeatureId) { id = ((FeatureId) ident).getRid(); } else { id = Converters.convert(ident.getID(), String.class); } if (idSet.idExists(id)) { return null; } return object; } else if (object instanceof ComplexAttribute) { return ((ComplexAttribute) object).getProperties().iterator().next(); } } return null; }
Identifier ident = att.getIdentifier(); if (ident == null) { return;
Identifier ident = object.getIdentifier(); if (ident == null) { return;