org.geotools.feature
Class PropertyImpl

java.lang.Object
  extended by org.geotools.feature.PropertyImpl
All Implemented Interfaces:
org.opengis.feature.Property
Direct Known Subclasses:
AssociationImpl, AttributeImpl, LenientAttribute

public abstract class PropertyImpl
extends java.lang.Object
implements org.opengis.feature.Property

Implementation of Property.

Author:
Justin Deoliveira, The Open Planning Project

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

Field Detail

value

protected java.lang.Object value
content of the property


descriptor

protected org.opengis.feature.type.PropertyDescriptor descriptor
descriptor of the property


userData

protected final java.util.Map<java.lang.Object,java.lang.Object> userData
user data

Constructor Detail

PropertyImpl

protected PropertyImpl(java.lang.Object value,
                       org.opengis.feature.type.PropertyDescriptor descriptor)
Method Detail

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface org.opengis.feature.Property

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface org.opengis.feature.Property

getDescriptor

public org.opengis.feature.type.PropertyDescriptor getDescriptor()
Specified by:
getDescriptor in interface org.opengis.feature.Property

getName

public org.opengis.feature.type.Name getName()
Specified by:
getName in interface org.opengis.feature.Property

getType

public org.opengis.feature.type.PropertyType getType()
Specified by:
getType in interface org.opengis.feature.Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface org.opengis.feature.Property

getUserData

public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
Specified by:
getUserData in interface org.opengis.feature.Property

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.