Java中org.geotools.feature.type.AttributeTypeImpl類 用法示例代碼
Java org.geotools.feature.type.AttributeTypeImpl類屬于org.geotools.feature.type包。
使用說明:屬性類型的基類。
本文搜集整理了關(guān)于Java org.geotools.feature.type.AttributeTypeImpl類的代碼示例片斷,并附有代碼來源和完整的源代碼,希望對(duì)您的程序開發(fā)有幫助。
本文末尾還列舉了關(guān)于org.geotools.feature.type.AttributeTypeImpl類的其它相關(guān)的方法列表供您參考。
FeatureTypeFactoryImpl.createAttributeType(...)
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);
}
代碼來源:geotools/geotools
Types.parse(...)
/**
* 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;
}
代碼來源:geotools/geotools
ComplexTypeImpl.equals(...)
@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;
}
代碼來源:geotools/geotools
ComplexTypeImpl.getBinding()
public Class<Collection<Property>> getBinding() {
return (Class<Collection<Property>>) super.getBinding();
}
代碼來源:geotools/geotools
ComplexTypeImpl.getBinding()
public Class<Collection<Property>> getBinding() {
return (Class<Collection<Property>>) super.getBinding();
}
代碼來源:org.geotools/gt-main
GMLSchema.build_TIMEPOSITIONUNION_TYPE()
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;
}
代碼來源:geotools/geotools
Types.parse(...)
/**
* 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;
}
代碼來源:org.geotools/gt-app-schema
GeometryTypeImpl.equals(...)
@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());
}
}
代碼來源:geotools/geotools
GMLSchema.build_TIMEUNITTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
ComplexTypeImpl.equals(...)
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;
}
代碼來源:org.geotools/gt-main
GMLSchema.build__ISSPHERE_TYPE()
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;
}
代碼來源:geotools/geotools
GeometryTypeImpl.equals(...)
@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());
}
代碼來源:org.geotools/gt-main
GMLSchema.build_LINEARRINGPROPERTYTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_MULTIPOINTTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_SURFACEPROPERTYTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_MULTILINESTRINGPROPERTYTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_SIGNTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_KNOTTYPESTYPE_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_NAMELIST_TYPE()
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;
}
代碼來源:geotools/geotools
GMLSchema.build_NCNAMELIST_TYPE()
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;
}
代碼來源:geotools/geotools
相關(guān)方法:
org.geotools.feature.type.AttributeTypeImpl.<init>
org.geotools.feature.type.AttributeTypeImpl.parse
org.geotools.feature.type.AttributeTypeImpl.equals
org.geotools.feature.type.AttributeTypeImpl.getBinding
org.geotools.feature.type.AttributeTypeImpl.getName
org.geotools.feature.type.AttributeTypeImpl.hashCode
org.geotools.feature.type.AttributeTypeImpl.isAbstract
org.geotools.feature.type.AttributeTypeImpl.isIdentified
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場(chǎng)。
轉(zhuǎn)載請(qǐng)注明,如有侵權(quán),聯(lián)系刪除。