|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.AbstractDescriptor
org.evolvica.engine.AttributeDescriptor
Descriptor of an attribute/property of an operator.
Constructor Summary | |
AttributeDescriptor(java.beans.PropertyDescriptor descriptor)
Copy Constructor. |
|
AttributeDescriptor(java.lang.String name)
Constructor. |
|
AttributeDescriptor(java.lang.String name,
java.lang.String displayName,
java.lang.Object bean)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clones this attribute descriptor. |
int |
compareTo(java.lang.Object o)
|
java.lang.Class |
getIndexedPropertyType()
Returns the indexed property type (if there is any) |
java.lang.reflect.Method |
getIndexedReadMethod()
Returns the read method for indexed properties. |
java.lang.reflect.Method |
getIndexedWriteMethod()
Returns the write method for indexed properties. |
java.lang.Class |
getPropertyType()
Returns the property type. |
java.lang.reflect.Method |
getReadMethod()
Returns the read method for the property. |
java.lang.reflect.Method |
getWriteMethod()
Returns the write method for this property. |
boolean |
isBound()
Returns whether this property is bound. |
boolean |
isConstrained()
Returns whether this property is constrained. |
boolean |
isResolved()
Returns whether this property has already been resolved. |
void |
load(org.w3c.dom.Element element)
Deprecated. use DescriptorBuilder to create XML elements from attribute descriptors |
void |
resolve(java.lang.Class parent)
Deprecated. use DescriptorResolver instead of this method |
org.w3c.dom.Element |
save(org.w3c.dom.Document doc)
Deprecated. use DescriptorWriter for saving |
void |
setBound(boolean b)
Sets the bound flag. |
void |
setConstrained(boolean b)
Sets the constrained flag. |
void |
setIndexedPropertyType(java.lang.Class class1)
Sets the indexed property type. |
void |
setIndexedReadMethod(java.lang.reflect.Method method)
Sets the read method for indexed properties. |
void |
setIndexedWriteMethod(java.lang.reflect.Method method)
Sets the write method for index porperties. |
void |
setPropertyType(java.lang.Class class1)
Sets the property type. |
void |
setReadMethod(java.lang.reflect.Method method)
Sets the read method for the property. |
void |
setWriteMethod(java.lang.reflect.Method method)
Sets the write method for the property. |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class org.evolvica.engine.AbstractDescriptor |
getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeDescriptor(java.lang.String name)
name
- name of the attributepublic AttributeDescriptor(java.lang.String name, java.lang.String displayName, java.lang.Object bean) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
name
- name of the attributedisplayName
- display name of the attributebean
- bean from which to retrieve the property
java.lang.IllegalAccessException
- thrown in case the property cannot be retrieve
java.lang.reflect.InvocationTargetException
- thrown in case the property cannot be retrieve
java.lang.NoSuchMethodException
- thrown in case the property cannot be retrievepublic AttributeDescriptor(java.beans.PropertyDescriptor descriptor)
descriptor
- property descriptorMethod Detail |
public java.lang.Object clone()
public java.lang.Class getIndexedPropertyType()
public java.lang.reflect.Method getIndexedReadMethod()
public java.lang.reflect.Method getIndexedWriteMethod()
public java.lang.Class getPropertyType()
public java.lang.reflect.Method getReadMethod()
public java.lang.reflect.Method getWriteMethod()
public boolean isBound()
public boolean isConstrained()
public boolean isResolved()
public void resolve(java.lang.Class parent)
parent
- parent classpublic void load(org.w3c.dom.Element element) throws java.lang.IllegalArgumentException
element
- XML element
java.lang.IllegalArgumentException
- thrown in case the descriptor cannot be loadedpublic void setBound(boolean b)
b
- bound flagpublic void setConstrained(boolean b)
b
- constrained flagpublic void setIndexedPropertyType(java.lang.Class class1)
class1
- indexed property typepublic void setIndexedReadMethod(java.lang.reflect.Method method)
method
- read methodpublic void setIndexedWriteMethod(java.lang.reflect.Method method)
method
- write methodpublic void setPropertyType(java.lang.Class class1)
class1
- property typepublic void setReadMethod(java.lang.reflect.Method method)
method
- read methodpublic void setWriteMethod(java.lang.reflect.Method method)
method
- write methodpublic org.w3c.dom.Element save(org.w3c.dom.Document doc)
doc
- XML document to use for element creation
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class AbstractDescriptor
Comparable.compareTo(java.lang.Object)
public java.lang.String toString()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |