public class UniqueNameFeatureTypeImpl extends FeatureTypeImpl
FeatureTypeImplthat avoids equality tests on feature types with cyclic definitions by considering features types to be equal if and only if their names are equal.
Users of this class must not create multiple instances with the same name unless they represent the same type, because other parts of the implementation will assume they are equal, and if they are not, Bad Things Will Happen.
It should be noted that app-schema does not support the multiple definition XSD types with the
same name. This restriction allows multiple XSD elements and thus WFS feature types (with
different names) to have the same XSD type, because the XSD type can be recognised by name even
if it has a cyclic definition. This simplified equality testing allows
to handle these types, despite their cyclic definition preventing a full recursive implementation
equals(Object)equals(). Unit test coverage is in GeoServer app-schema-test
|Constructor and Description|
|Modifier and Type||Method and Description|
Delegates to the type name
Delegates to type name
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline, toString
getDescription, getName, getRestrictions, getUserData, isAbstract
getBinding, getDescriptor, getDescriptor, getDescriptors, isInline
public int hashCode()
public boolean equals(Object other)
Copyright © 1996–2022 Geotools. All rights reserved.