|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.property.AbstractPropertyDefinition
Default implementation of a PropertyDefinition.
Constructor Summary | |
AbstractPropertyDefinition()
Default constructor |
|
AbstractPropertyDefinition(java.lang.String descriptionArg,
int typeArg,
boolean multiValuedArg,
boolean restrictedArg,
java.util.Collection restrictedValuesArg,
java.lang.Object defaultValueArg)
Constructor to initialize attributes |
Method Summary | |
int |
compareTo(java.lang.Object o)
Implementation of Object.compareTo(); returns 0 if the two objects are equal; attempts to determine an ordering otherwise and returns -1 if this object is less than the comparison object, and 1 if this object is greater than the comparison object. |
protected int |
determinePropertyType(java.lang.Object value)
Determines if the data type of the property value is a known property type. |
boolean |
equals(java.lang.Object o)
Equality operator. |
java.lang.Object |
getDefaultValue()
Get the default value for this property. |
java.lang.String |
getDescription()
Get the description of this property |
java.util.Collection |
getRestrictedValues()
Get the allowable values, if this property is restricted. |
int |
getType()
Get the datatype of the property |
int |
hashCode()
Computes a hashcode for this object based on its attributes |
boolean |
isMultiValued()
Can this property support multiple values? |
boolean |
isRestricted()
Is this property restricted to a certain list of values? |
void |
setDefaultValue(java.lang.Object o)
Set the default value for this property. |
void |
setDescription(java.lang.String s)
Set the description of this property |
void |
setMultiValued(boolean b)
Set if this property support multiple values? |
void |
setRestricted(boolean b)
Set if this property restricted to a certain list of values? |
void |
setRestrictedValues(java.util.Collection c)
Set the allowable values, if this property is restricted |
void |
setType(int i)
Set the datatype of the property |
java.lang.String |
toString()
Basic toString method |
void |
validate(java.lang.Object value)
Validates the given value against the property definition. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AbstractPropertyDefinition()
public AbstractPropertyDefinition(java.lang.String descriptionArg, int typeArg, boolean multiValuedArg, boolean restrictedArg, java.util.Collection restrictedValuesArg, java.lang.Object defaultValueArg)
Method Detail |
public java.lang.String getDescription()
public void setDescription(java.lang.String s)
public int getType()
public void setType(int i)
public boolean isMultiValued()
public void setMultiValued(boolean b)
public boolean isRestricted()
public void setRestricted(boolean b)
public java.util.Collection getRestrictedValues()
public void setRestrictedValues(java.util.Collection c)
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object o)
public void validate(java.lang.Object value) throws PropertyValidationException
public boolean equals(java.lang.Object o)
public int hashCode()
public int compareTo(java.lang.Object o)
protected int determinePropertyType(java.lang.Object value)
value
- int
which is one of the datatype constants defined in the PropertyDefinition interfacepublic java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |