public class ComplexAttributeImpl extends AttributeImpl implements ComplexAttribute
iddescriptor, userData, value| Constructor and Description |
|---|
ComplexAttributeImpl(Collection<Property> properties,
AttributeDescriptor descriptor,
Identifier id) |
ComplexAttributeImpl(Collection<Property> properties,
ComplexType type,
Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Property> |
getProperties()
Complete collection of properties.
|
Collection<Property> |
getProperties(Name name)
Returns a subset of the properties of the complex attribute which match the specified name.
|
Collection<Property> |
getProperties(String name)
Returns a subset of the properties of the complex attribute which match the specified name.
|
Property |
getProperty(Name name)
Returns single property of the complex attribute which matches the specified name.
|
Property |
getProperty(String name)
Returns single property of the complex attribute which matches the specified name.
|
ComplexType |
getType()
The type of the property.
|
Collection<? extends Property> |
getValue()
The value or content of the property.
|
protected Collection |
properties()
Internal helper method for getting at the properties without wrapping in unmodifiable
collection.
|
void |
setValue(Collection<Property> newValue)
Sets the contained properties of the complex attribute.
|
void |
setValue(Object newValue)
Override of setValue to convert the newValue to specified type if need be.
|
equals, getDescriptor, getIdentifier, hashCode, parse, toString, validategetName, getUserData, isNillablevalidategetDescriptor, getIdentifiergetName, getUserData, isNillablepublic ComplexAttributeImpl(Collection<Property> properties, AttributeDescriptor descriptor, Identifier id)
public ComplexAttributeImpl(Collection<Property> properties, ComplexType type, Identifier id)
public ComplexType getType()
PropertyThe type contains information about the value or content of the property such as its java class.
This value is also available via getDescriptor().getType().
getType in interface AttributegetType in interface ComplexAttributegetType in interface PropertygetType in class AttributeImplProperty.getType()public Collection<? extends Property> getValue()
PropertyThe class of this object is defined by getType().getBinding().
This value may be null. In this case getDescriptor().isNillable()
would be true.
getValue in interface ComplexAttributegetValue in interface PropertygetValue in class PropertyImplpublic Collection<Property> getProperties()
ComplexAttributeThis method is a convenience method for calling (Collection
getProperties in interface ComplexAttributeprotected Collection properties()
public Collection<Property> getProperties(Name name)
ComplexAttributeThe name parameter is matched against each contained Property.getName(),
those that are equal are returned.
getProperties in interface ComplexAttributename - The name of the properties to return.public Collection<Property> getProperties(String name)
ComplexAttributeThis method is a convenience for ComplexAttribute.getProperties(Name) in which Name.getNamespaceURI() is null.
Note: Special care should be taken when using this method in the case that two properties
with the same local name but different namespace uri exist. For this reason using ComplexAttribute.getProperties(Name) is safer.
getProperties in interface ComplexAttributename - The local name of the properties to return.ComplexAttribute.getProperties(Name)public Property getProperty(Name name)
ComplexAttributeNote: This method is a convenience and care should be taken when calling it if more then a
single property matches name. In such a case the first encountered property in which
Property.getName() is equal to name is returned, and no order is guaranteed.
This method is a safe convenience for: getProperties(name).iterator().next().
In the event that no property matches the specified name null is returned.
getProperty in interface ComplexAttributename - The name of the property to return.null.public Property getProperty(String name)
ComplexAttributeThis method is a convenience for ComplexAttribute.getProperty(Name) in which Name.getNamespaceURI() is null.
Note: This method is a convenience and care should be taken when calling it if more then a
single property matches name. In such a case the first encountered property in which
Property.getName() is matches name is returned, and no order is guaranteed.
Note: Special care should be taken when using this method in the case that two properties
with the same local name but different namespace uri exist. For this reason using ComplexAttribute.getProperties(Name) is safer.
getProperty in interface ComplexAttributename - The local name of the property to return.null.public void setValue(Object newValue) throws IllegalArgumentException, IllegalStateException
AttributeImplsetValue in interface PropertysetValue in class AttributeImplnewValue - The new value of the property.IllegalArgumentExceptionIllegalStateExceptionpublic void setValue(Collection<Property> newValue)
ComplexAttributeThe values should match the structure defined by getDescriptor().
setValue in interface ComplexAttributeCopyright © 1996–2019 Geotools. All rights reserved.