|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectPropertyTypeImpl
AttributeTypeImpl
public class AttributeTypeImpl
Base class for attribute types.
| Field Summary | |
|---|---|
protected boolean |
identified
|
| Fields inherited from class PropertyTypeImpl |
|---|
binding, description, isAbstract, name, restrictions, superType, userData |
| Constructor Summary | |
|---|---|
AttributeTypeImpl(Name name,
Class<?> binding,
boolean identified,
boolean isAbstract,
List<Filter> restrictions,
AttributeType superType,
InternationalString description)
|
|
| Method Summary | |
|---|---|
Object |
createDefaultValue()
|
boolean |
equals(Object other)
Override of equals. |
AttributeType |
getSuper()
The parent type of the property type. |
int |
hashCode()
Override of hashcode. |
boolean |
isIdentified()
Indicates if the type is identified or not. |
Object |
parse(Object value)
Allows this AttributeType to convert an argument to its prefered storage type. |
String |
toString()
|
| Methods inherited from class PropertyTypeImpl |
|---|
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface PropertyType |
|---|
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract |
| Field Detail |
|---|
protected final boolean identified
| Constructor Detail |
|---|
public AttributeTypeImpl(Name name,
Class<?> binding,
boolean identified,
boolean isAbstract,
List<Filter> restrictions,
AttributeType superType,
InternationalString description)
| Method Detail |
|---|
public boolean isIdentified()
AttributeType
If this method returns true, then the corresponding
attribute must have a unique identifier, ie, Attribute#getID()
must return a value, and cannot be null.
isIdentified in interface AttributeTypetrue if the attribute is identified, otherwise false.Attribute#getID()
public Object parse(Object value)
throws IllegalArgumentException
value - the object to attempt parsing of.
value converted to the preferred storage of this
AttributeType. If no parsing was possible then
the same object is returned.
IllegalArgumentException - if parsing is attempted and is unsuccessful.public Object createDefaultValue()
public AttributeType getSuper()
PropertyType
This method returns null if no super type is defined.
The super type may contain additional restrictions to be considered against properties of the the property type.
getSuper in interface AttributeTypegetSuper in interface PropertyTypegetSuper in class PropertyTypeImplnull.PropertyType.getSuper()public int hashCode()
hashCode in interface PropertyTypehashCode in class PropertyTypeImplpublic boolean equals(Object other)
equals in interface PropertyTypeequals in class PropertyTypeImplother - the object to be tested for equality.
public String toString()
toString in class PropertyTypeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||