Пример #1
0
 @Override
 public Property getProperty(String eName) {
   // Get instance, returns null if not found
   //
   EFeatureProperty<?, ? extends Property> eProperty = eInternal.getPropertyMap().get(eName);
   //
   // Get property instance, return null if not found
   //
   return (eProperty != null ? eProperty.getData() : null);
 }
Пример #2
0
 @Override
 public GeometryAttribute getDefaultGeometryProperty() {
   //
   // Get default Geometry name
   //
   String eName = eStructure().eGetDefaultGeometryName();
   //
   // Get EFeatureGeometry structure
   //
   EFeatureGeometry<?> eGeometry = (EFeatureGeometry<?>) eInternal.getPropertyMap().get(eName);
   //
   // Found geometry?
   //
   if (eGeometry != null) {
     // Get attribute
     //
     return eGeometry.getData();
   }
   //
   // Not found, return null;
   //
   return null;
 }