org.geotools.feature.type
Class PropertyDescriptorImpl

Object
  extended by PropertyDescriptorImpl
All Implemented Interfaces:
PropertyDescriptor
Direct Known Subclasses:
AssociationDescriptorImpl, AttributeDescriptorImpl

public class PropertyDescriptorImpl
extends Object
implements PropertyDescriptor


Field Summary
protected  boolean isNillable
           
protected  int maxOccurs
           
protected  int minOccurs
           
protected  Name name
           
protected  PropertyType type
           
 
Constructor Summary
protected PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getMaxOccurs()
          The maximum number of occurrences of the property within its containing entity.
 int getMinOccurs()
          The minimum number of occurrences of the property within its containing entity.
 Name getName()
          The name of the property defined by the descriptor, with respect to its containing type or entity..
 PropertyType getType()
          The type of the property defined by the descriptor.
 Map<Object,Object> getUserData()
          A map of "user data" which enables applications to store "application-specific" information against a property descriptor.
 int hashCode()
           
 boolean isNillable()
          Flag indicating if null is an allowable value for the property.
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected final PropertyType type

name

protected final Name name

minOccurs

protected final int minOccurs

maxOccurs

protected final int maxOccurs

isNillable

protected final boolean isNillable
Constructor Detail

PropertyDescriptorImpl

protected PropertyDescriptorImpl(PropertyType type,
                                 Name name,
                                 int min,
                                 int max,
                                 boolean isNillable)
Method Detail

getType

public PropertyType getType()
Description copied from interface: PropertyDescriptor
The type of the property defined by the descriptor.

This value should never be null. The type contains information about the value of the property such as its java class.

Specified by:
getType in interface PropertyDescriptor

getName

public Name getName()
Description copied from interface: PropertyDescriptor
The name of the property defined by the descriptor, with respect to its containing type or entity..

This value may be null in some instances. Also note that this is not the same name as getType().getName(). The former is the name of the instance, the latter is the name of the type of the instance.

Specified by:
getName in interface PropertyDescriptor

getMinOccurs

public int getMinOccurs()
Description copied from interface: PropertyDescriptor
The minimum number of occurrences of the property within its containing entity.

This value is always an integer greater than or equal to zero.

Specified by:
getMinOccurs in interface PropertyDescriptor
Returns:
An integer >= 0

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: PropertyDescriptor
The maximum number of occurrences of the property within its containing entity.

This value is a positive integer. A value of -1 means that the max number of occurrences is unbounded.

Specified by:
getMaxOccurs in interface PropertyDescriptor
Returns:
An integer >= 0, or -1.

isNillable

public boolean isNillable()
Description copied from interface: PropertyDescriptor
Flag indicating if null is an allowable value for the property.

Specified by:
isNillable in interface PropertyDescriptor
Returns:
true if the property is allowed to be null, otherwise false.

getUserData

public Map<Object,Object> getUserData()
Description copied from interface: PropertyDescriptor
A map of "user data" which enables applications to store "application-specific" information against a property descriptor.

Specified by:
getUserData in interface PropertyDescriptor
Returns:
A map of user data.

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-2014 Geotools. All Rights Reserved.