org.geotools.feature
Class ComplexAttributeImpl

Object
  extended by PropertyImpl
      extended by AttributeImpl
          extended by ComplexAttributeImpl
All Implemented Interfaces:
Attribute, ComplexAttribute, Property
Direct Known Subclasses:
FeatureImpl

public class ComplexAttributeImpl
extends AttributeImpl
implements ComplexAttribute


Field Summary
 
Fields inherited from class AttributeImpl
id
 
Fields inherited from class PropertyImpl
descriptor, userData, value
 
Constructor Summary
ComplexAttributeImpl(Collection<Property> properties, AttributeDescriptor descriptor, Identifier id)
           
ComplexAttributeImpl(Collection<Property> properties, ComplexType type, Identifier id)
           
 
Method Summary
 Collection<Property> getProperties()
           
 Collection<Property> getProperties(Name name)
           
 Collection<Property> getProperties(String name)
           
 Property getProperty(Name name)
           
 Property getProperty(String name)
           
 ComplexType getType()
           
 Collection<? extends Property> getValue()
           
protected  Collection properties()
          Internal helper method for getting at the properties without wrapping in unmodifiable collection.
 void setValue(Collection<Property> newValue)
           
 void setValue(Object newValue)
          Override of setValue to convert the newValue to specified type if need be.
 
Methods inherited from class AttributeImpl
equals, getDescriptor, getIdentifier, hashCode, parse, toString, validate
 
Methods inherited from class PropertyImpl
getName, getUserData, isNillable
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ComplexAttribute
validate
 
Methods inherited from interface Attribute
getDescriptor, getIdentifier
 
Methods inherited from interface Property
getName, getUserData, isNillable
 

Constructor Detail

ComplexAttributeImpl

public ComplexAttributeImpl(Collection<Property> properties,
                            AttributeDescriptor descriptor,
                            Identifier id)

ComplexAttributeImpl

public ComplexAttributeImpl(Collection<Property> properties,
                            ComplexType type,
                            Identifier id)
Method Detail

getType

public ComplexType getType()
Specified by:
getType in interface Attribute
Specified by:
getType in interface ComplexAttribute
Specified by:
getType in interface Property
Overrides:
getType in class AttributeImpl

getValue

public Collection<? extends Property> getValue()
Specified by:
getValue in interface ComplexAttribute
Specified by:
getValue in interface Property
Overrides:
getValue in class PropertyImpl

getProperties

public Collection<Property> getProperties()
Specified by:
getProperties in interface ComplexAttribute

properties

protected Collection properties()
Internal helper method for getting at the properties without wrapping in unmodifiable collection.


getProperties

public Collection<Property> getProperties(Name name)
Specified by:
getProperties in interface ComplexAttribute

getProperties

public Collection<Property> getProperties(String name)
Specified by:
getProperties in interface ComplexAttribute

getProperty

public Property getProperty(Name name)
Specified by:
getProperty in interface ComplexAttribute

getProperty

public Property getProperty(String name)
Specified by:
getProperty in interface ComplexAttribute

setValue

public void setValue(Object newValue)
              throws IllegalArgumentException,
                     IllegalStateException
Description copied from class: AttributeImpl
Override of setValue to convert the newValue to specified type if need be.

Specified by:
setValue in interface Property
Overrides:
setValue in class AttributeImpl
Throws:
IllegalArgumentException
IllegalStateException

setValue

public void setValue(Collection<Property> newValue)
Specified by:
setValue in interface ComplexAttribute


Copyright © 1996-2009 Geotools. All Rights Reserved.