public ComplexType createComplexType( Name name, Collection schema, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description) { return new ComplexTypeImpl( name, schema, isIdentifiable, isAbstract, restrictions, superType, description); }
public PropertyDescriptor getDescriptor(String name) { PropertyDescriptor result = getDescriptor(new NameImpl(name)); if (result == null) { // look in the same namespace as the complex type result = getDescriptor(new NameImpl(getName().getNamespaceURI(), name)); if (result == null) { // full scan for (PropertyDescriptor pd : properties) { if (pd.getName().getLocalPart().equals(name)) { return pd; } } } } return result; }
public int hashCode() { int hashCode = super.hashCode(); if (defaultGeometry != null) { hashCode = hashCode ^ defaultGeometry.hashCode(); } return hashCode; } }
public String toString() { StringBuffer sb = new StringBuffer(Classes.getShortClassName(this)); sb.append(" "); sb.append(getName()); if (isAbstract()) { sb.append(" abstract"); if (isIdentified()) { sb.append(" identified"); for (PropertyDescriptor property : getDescriptors()) { if (first) { first = false;
public boolean equals(Object o) { if (this == o) { return true; } if (!super.equals(o)) { return false; } if (getClass() != o.getClass()) { return false; } FeatureType other = (FeatureType) o; if (!Utilities.equals(getGeometryDescriptor(), other.getGeometryDescriptor())) { return false; } return true; }
public String toString() { StringBuffer sb = new StringBuffer(Classes.getShortClassName(this)); sb.append(" "); sb.append( getName() ); if( isAbstract() ){ sb.append( " abstract" ); if( isIdentified() ){ sb.append( " identified" ); for( PropertyDescriptor property : getDescriptors() ){ if( first ){ first = false;
public boolean equals(Object o) { if(this == o) { return true; } if(!super.equals(o)){ return false; } if (getClass() != o.getClass()) { return false; } FeatureType other = (FeatureType) o; if (!Utilities.equals( getGeometryDescriptor(), other.getGeometryDescriptor())) { return false; } return true; }
private static ComplexType build_ABSTRACTTIMEOBJECTTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractTimeObjectType"), Collections.<PropertyDescriptor>emptyList(), false, true, Collections.<Filter>emptyList(), ABSTRACTGMLTYPE_TYPE, null); return builtType; }
public PropertyDescriptor getDescriptor(String name) { PropertyDescriptor result = getDescriptor(new NameImpl(name)); if (result == null) { // look in the same namespace as the complex type result = getDescriptor(new NameImpl(getName().getNamespaceURI(), name)); if (result == null) { // full scan for (PropertyDescriptor pd : properties) { if (pd.getName().getLocalPart().equals(name)) { return pd; } } } } return result; }
public int hashCode() { int hashCode = super.hashCode(); if ( defaultGeometry != null ) { hashCode = hashCode ^ defaultGeometry.hashCode(); } return hashCode; } }
private static ComplexType build_ABSTRACTSOLIDTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractSolidType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTGEOMETRICPRIMITIVETYPE_TYPE, null); return builtType; }
private static ComplexType build_ABSTRACTSURFACEPATCHTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractSurfacePatchType"), Collections.<PropertyDescriptor>emptyList(), false, true, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static ComplexType build_ABSTRACTCURVETYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractCurveType"), Collections.<PropertyDescriptor>emptyList(), false, true, Collections.<Filter>emptyList(), ABSTRACTGEOMETRICPRIMITIVETYPE_TYPE, null); return builtType; }
private static ComplexType build_ABSTRACTTOPOLOGYTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "AbstractTopologyType"), Collections.<PropertyDescriptor>emptyList(), false, true, Collections.<Filter>emptyList(), ABSTRACTGMLTYPE_TYPE, null); return builtType; }
private static ComplexType build_SCALETYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "ScaleType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), MEASURETYPE_TYPE, null); return builtType; }
private static ComplexType build_ENGINEERINGDATUMTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "EngineeringDatumType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTDATUMTYPE_TYPE, null); return builtType; }
private static ComplexType build_CARTESIANCSTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "CartesianCSType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTCOORDINATESYSTEMTYPE_TYPE, null); return builtType; }
private static ComplexType build_SPHERICALCSTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "SphericalCSType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTCOORDINATESYSTEMTYPE_TYPE, null); return builtType; }
private static ComplexType build_LINEARCSTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "LinearCSType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTCOORDINATESYSTEMTYPE_TYPE, null); return builtType; }
private static ComplexType build_OBLIQUECARTESIANCSTYPE_TYPE() { ComplexType builtType; builtType = new ComplexTypeImpl( new NameImpl("http://www.opengis.net/gml", "ObliqueCartesianCSType"), Collections.<PropertyDescriptor>emptyList(), false, false, Collections.<Filter>emptyList(), ABSTRACTCOORDINATESYSTEMTYPE_TYPE, null); return builtType; }