org.geotools.feature
Class ComplexAttributeImpl

java.lang.Object
  extended by org.geotools.feature.PropertyImpl
      extended by org.geotools.feature.AttributeImpl
          extended by org.geotools.feature.ComplexAttributeImpl
All Implemented Interfaces:
org.opengis.feature.Attribute, org.opengis.feature.ComplexAttribute, org.opengis.feature.Property
Direct Known Subclasses:
FeatureImpl

public class ComplexAttributeImpl
extends AttributeImpl
implements org.opengis.feature.ComplexAttribute


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

Constructor Detail

ComplexAttributeImpl

public ComplexAttributeImpl(java.util.Collection<org.opengis.feature.Property> properties,
                            org.opengis.feature.type.AttributeDescriptor descriptor,
                            org.opengis.filter.identity.Identifier id)

ComplexAttributeImpl

public ComplexAttributeImpl(java.util.Collection<org.opengis.feature.Property> properties,
                            org.opengis.feature.type.ComplexType type,
                            org.opengis.filter.identity.Identifier id)
Method Detail

getType

public org.opengis.feature.type.ComplexType getType()
Specified by:
getType in interface org.opengis.feature.Attribute
Specified by:
getType in interface org.opengis.feature.ComplexAttribute
Specified by:
getType in interface org.opengis.feature.Property
Overrides:
getType in class AttributeImpl

getValue

public java.util.Collection<? extends org.opengis.feature.Property> getValue()
Specified by:
getValue in interface org.opengis.feature.ComplexAttribute
Specified by:
getValue in interface org.opengis.feature.Property
Overrides:
getValue in class PropertyImpl

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties()
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

properties

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


getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name name)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String name)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name name)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(java.lang.String name)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

setValue

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

Specified by:
setValue in interface org.opengis.feature.Property
Overrides:
setValue in class AttributeImpl
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException

setValue

public void setValue(java.util.Collection<org.opengis.feature.Property> newValue)
Specified by:
setValue in interface org.opengis.feature.ComplexAttribute


Copyright © 1996-2010 Geotools. All Rights Reserved.