org.geotools.feature.type
Class ReadonlyAttributeDecorator

Object
  extended by ReadonlyAttributeDecorator
All Implemented Interfaces:
Attribute, Property

public final class ReadonlyAttributeDecorator
extends Object
implements Attribute

Readonly wrapper around the provided Attribute.

This class is used by Types in order to protect provided attributes from modification during evaluation.

Module:
modules/library/main (gt-main.jar)

Constructor Summary
ReadonlyAttributeDecorator(Attribute delegate)
           
 
Method Summary
 AttributeDescriptor getDescriptor()
           
 Identifier getIdentifier()
           
 Name getName()
           
 AttributeType getType()
           
 Map<Object,Object> getUserData()
           
 Object getValue()
           
 boolean isNillable()
           
 void setValue(Object newValue)
           
 void validate()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadonlyAttributeDecorator

public ReadonlyAttributeDecorator(Attribute delegate)
Method Detail

getType

public AttributeType getType()
Specified by:
getType in interface Attribute
Specified by:
getType in interface Property

getIdentifier

public Identifier getIdentifier()
Specified by:
getIdentifier in interface Attribute

getValue

public Object getValue()
Specified by:
getValue in interface Property

setValue

public void setValue(Object newValue)
              throws IllegalArgumentException
Specified by:
setValue in interface Property
Throws:
IllegalArgumentException

getDescriptor

public AttributeDescriptor getDescriptor()
Specified by:
getDescriptor in interface Attribute
Specified by:
getDescriptor in interface Property

getName

public Name getName()
Specified by:
getName in interface Property

getUserData

public Map<Object,Object> getUserData()
Specified by:
getUserData in interface Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface Property

validate

public void validate()
Specified by:
validate in interface Attribute


Copyright © 1996-2009 Geotools. All Rights Reserved.