Class AttributeTypeProxy
- All Implemented Interfaces:
AttributeType,PropertyType
- Direct Known Subclasses:
ComplexTypeProxy,GeometryTypeProxy
- Since:
- 2.4
- Author:
- Gabriel Roldan (Axios Engineering)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality based on propertyPropertyType.getName().Class<?>The java class that values of properties of the property type are bound to.Human readable description of this property type.getName()The name of the property type.List of restrictions used define valid values for properties of this property type.getSuper()Override ofPropertyType.getSuper()which type narrows toAttributeType.A map of "user data" which enables applications to store "application-specific" information against a property type.inthashCode()Hashcode override based onPropertyType.getName().booleanFlag indicating if the type is abstract or not.booleanIndicates if the type is identified or not.
-
Constructor Details
-
AttributeTypeProxy
-
-
Method Details
-
getSubject
-
getBinding
Description copied from interface:PropertyTypeThe java class that values of properties of the property type are bound to.This value is never
null.- Specified by:
getBindingin interfacePropertyType- Returns:
- The binding of the property type.
-
getOperations
-
getRestrictions
Description copied from interface:PropertyTypeList of restrictions used define valid values for properties of this property type.Each restriction is a
Filterobject in which the property is passed through. IfFilter.evaluate(Object)returnstruethe restriction is met. Iffalseis returned then the restriction has not been met and the property should be considered invalid. Remember to check getSuper().getRestrictions() as well.This method returns an empty set in the case of no restrictions and should not return
null.- Specified by:
getRestrictionsin interfacePropertyType- Returns:
- List
used to validate allowable values.
-
getSuper
Description copied from interface:AttributeTypeOverride ofPropertyType.getSuper()which type narrows toAttributeType.- Specified by:
getSuperin interfaceAttributeType- Specified by:
getSuperin interfacePropertyType- Returns:
- The parent or super type, or
null. - See Also:
-
isAbstract
public boolean isAbstract()Description copied from interface:PropertyTypeFlag indicating if the type is abstract or not.- Specified by:
isAbstractin interfacePropertyType- Returns:
trueif the type is abstract, otherwisefalse.
-
isIdentified
public boolean isIdentified()Description copied from interface:AttributeTypeIndicates if the type is identified or not.If this method returns
true, then the corresponding attribute must have a unique identifier, ie,Attribute.getIdentifier()must return a value, and cannot benull.- Specified by:
isIdentifiedin interfaceAttributeType- Returns:
trueif the attribute is identified, otherwisefalse.- See Also:
-
getDescription
Description copied from interface:PropertyTypeHuman readable description of this property type.- Specified by:
getDescriptionin interfacePropertyType- Returns:
- Human readable description of this property type.
-
getName
Description copied from interface:PropertyTypeThe name of the property type.Note that this is not the same name as
Property.getName(), which is the name of the instance of the type, not the type itself.The returned name is a qualified name made up of two parts. The first a namespace uri (
Name.getNamespaceURI(), and the second a local part (Name.getLocalPart().This value is never
null.- Specified by:
getNamein interfacePropertyType- Returns:
- The name of the property type.
-
getUserData
Description copied from interface:PropertyTypeA map of "user data" which enables applications to store "application-specific" information against a property type.As an example, consider an application that builds a PropertyType from an xml schema. A useful bit of information to attach to the PropertyType is the original schema itself, in whatever construct it might be stored in:
XSDComplexTypeDefinition complexTypeDef = ...; PropertyType type = buildPropertyType( complexTypeDef ); type.getUserData().put( XSDComplexTypeDefintion.class, complexTypeDef );- Specified by:
getUserDatain interfacePropertyType- Returns:
- A map of user data.
-
equals
Description copied from interface:PropertyTypeEquality based on propertyPropertyType.getName().- Specified by:
equalsin interfacePropertyType- Overrides:
equalsin classObject- Returns:
trueif other is a PropertyType with the same name
-
hashCode
public int hashCode()Description copied from interface:PropertyTypeHashcode override based onPropertyType.getName().- Specified by:
hashCodein interfacePropertyType- Overrides:
hashCodein classObject- Returns:
- getName().hashCode()
-