public AttributeType createAttributeType( Name name, Class binding, boolean isIdentifiable, boolean isAbstract, List restrictions, AttributeType superType, InternationalString description) { return new AttributeTypeImpl( name, binding, isIdentifiable, isAbstract, restrictions, superType, description); }
/** * Converts content into a format which is used to store it internally within an attribute of a * specific type. * * @param value the object to attempt parsing of. * @throws IllegalArgumentException if parsing is attempted and is unsuccessful. */ public static Object parse(AttributeType type, Object content) throws IllegalArgumentException { // JD: TODO: this is pretty lame if (type instanceof AttributeTypeImpl) { AttributeTypeImpl hack = (AttributeTypeImpl) type; Object parsed = hack.parse(content); if (parsed != null) { return parsed; } } return content; }
@SuppressWarnings("PMD.OverrideBothEqualsAndHashcode") public boolean equals(Object o) { if (this == o) { return true; } if (!super.equals(o)) { return false; } if (getClass() != o.getClass()) { return false; } ComplexTypeImpl other = (ComplexTypeImpl) o; if (!properties.equals(other.properties)) { return false; } return true; }
public Class<Collection<Property>> getBinding() { return (Class<Collection<Property>>) super.getBinding(); }
public Class<Collection<Property>> getBinding() { return (Class<Collection<Property>>) super.getBinding(); }
private static AttributeType build_TIMEPOSITIONUNION_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "TimePositionUnion"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }
/** * Converts content into a format which is used to store it internally within an attribute of a * specific type. * * @param value * the object to attempt parsing of. * * @throws IllegalArgumentException * if parsing is attempted and is unsuccessful. */ public static Object parse(AttributeType type, Object content) throws IllegalArgumentException { // JD: TODO: this is pretty lame if (type instanceof AttributeTypeImpl) { AttributeTypeImpl hack = (AttributeTypeImpl) type; Object parsed = hack.parse(content); if (parsed != null) { return parsed; } } return content; }
@Override public boolean equals(Object other) { if (!(other instanceof GeometryType)) { return false; } if (!super.equals(other)) { return false; } GeometryType o = (GeometryType) other; if (CRS == null) { return o.getCoordinateReferenceSystem() == null; } if (o.getCoordinateReferenceSystem() == null) { return false; } return org.geotools.referencing.CRS.equalsIgnoreMetadata( CRS, o.getCoordinateReferenceSystem()); } }
private static AttributeType build_TIMEUNITTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "TimeUnitType"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }
public boolean equals(Object o){ if(this == o) { return true; } if(!super.equals(o)){ return false; } if (getClass() != o.getClass()) { return false; } ComplexTypeImpl other = (ComplexTypeImpl)o; if ( !properties.equals(other.properties) ) { return false; } return true; }
private static AttributeType build__ISSPHERE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "_isSphere"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.STRING_TYPE, null); return builtType; }
@Override public boolean equals(Object other) { if (!(other instanceof GeometryType)) { return false; } if (!super.equals(other)) { return false; } GeometryType o = (GeometryType) other; if (CRS == null) { return o.getCoordinateReferenceSystem() == null; } if (o.getCoordinateReferenceSystem() == null) { return false; } return org.geotools.referencing.CRS.equalsIgnoreMetadata(CRS, o.getCoordinateReferenceSystem()); }
private static AttributeType build_LINEARRINGPROPERTYTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "LinearRingPropertyType"), org.locationtech.jts.geom.LinearRing.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static AttributeType build_MULTIPOINTTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "MultiPointType"), org.locationtech.jts.geom.MultiPoint.class, false, false, Collections.<Filter>emptyList(), ABSTRACTGEOMETRICAGGREGATETYPE_TYPE, null); return builtType; }
private static AttributeType build_SURFACEPROPERTYTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "SurfacePropertyType"), org.locationtech.jts.geom.Polygon.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static AttributeType build_MULTILINESTRINGPROPERTYTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "MultiLineStringPropertyType"), org.locationtech.jts.geom.MultiLineString.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYTYPE_TYPE, null); return builtType; }
private static AttributeType build_SIGNTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "SignType"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.STRING_TYPE, null); return builtType; }
private static AttributeType build_KNOTTYPESTYPE_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "KnotTypesType"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.STRING_TYPE, null); return builtType; }
private static AttributeType build_NAMELIST_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "NameList"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }
private static AttributeType build_NCNAMELIST_TYPE() { AttributeType builtType; builtType = new AttributeTypeImpl( new NameImpl("http://www.opengis.net/gml", "NCNameList"), java.lang.Object.class, false, false, Collections.<Filter>emptyList(), XSSchema.ANYSIMPLETYPE_TYPE, null); return builtType; }