org.geotools.feature
Class PropertyImpl

Object
  extended by PropertyImpl
All Implemented Interfaces:
Property
Direct Known Subclasses:
AssociationImpl, AttributeImpl, LenientAttribute

public abstract class PropertyImpl
extends Object
implements Property

Implementation of Property.

Author:
Justin Deoliveira, The Open Planning Project
Module:
modules/library/main (gt-main.jar)

Field Summary
protected  PropertyDescriptor descriptor
          descriptor of the property
protected  Map<Object,Object> userData
          user data
protected  Object value
          content of the property
 
Constructor Summary
protected PropertyImpl(Object value, PropertyDescriptor descriptor)
           
 
Method Summary
 boolean equals(Object obj)
           
 PropertyDescriptor getDescriptor()
           
 Name getName()
           
 PropertyType getType()
           
 Map<Object,Object> getUserData()
           
 Object getValue()
           
 int hashCode()
           
 boolean isNillable()
           
 void setValue(Object value)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected Object value
content of the property


descriptor

protected PropertyDescriptor descriptor
descriptor of the property


userData

protected final Map<Object,Object> userData
user data

Constructor Detail

PropertyImpl

protected PropertyImpl(Object value,
                       PropertyDescriptor descriptor)
Method Detail

getValue

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

setValue

public void setValue(Object value)
Specified by:
setValue in interface Property

getDescriptor

public PropertyDescriptor getDescriptor()
Specified by:
getDescriptor in interface Property

getName

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

getType

public PropertyType getType()
Specified by:
getType in interface Property

isNillable

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

getUserData

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2010 Geotools. All Rights Reserved.