|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.discoverer.componentDescription.AbstractDescriptionElement
Field Summary | |
static java.lang.String |
ABSTRACT_DESCRIPTION_ELEMENT
Tag for DataObject version |
protected java.lang.String |
elementName
The name of this description element |
static java.lang.String |
NAME
Tag for DataObject version |
protected java.lang.Object |
value
Value of this element |
static java.lang.String |
VALUE
Tag for DataObject version |
Constructor Summary | |
protected |
AbstractDescriptionElement()
|
protected |
AbstractDescriptionElement(java.lang.String elementName)
Creates new AbstractDescriptionElement |
protected |
AbstractDescriptionElement(java.lang.String elementName,
java.lang.Object value)
Creates new AbstractDescriptionElement |
Method Summary | |
abstract java.lang.Object |
extractElement(java.lang.Object componentDescription)
Returns the element from the componentDescription corresponding to this description element |
static AbstractDescriptionElement |
factory(java.lang.String name,
java.lang.Object value)
Returns the AbstracDescriptionElement corresponding to the specified name |
static AbstractDescriptionElement |
fromDataObject(DataObject data)
Takes a DataObject and return an AbstractDescriptionElement object |
java.lang.String |
getElementName()
Returns the name of this element |
java.lang.Object |
getValue()
Returns the value of this element |
abstract boolean |
processQueryItem(java.lang.Object componentDescription,
AbstractComparison comparison)
Returns true if the comparison between the value of this object and the value of the corresponding field of the componentDescription returns true |
void |
setValue(java.lang.Object value)
Sets the value of this element |
DataObject |
toDataObject()
Returns the DataObject version |
java.lang.String |
toString()
Returns a printable version |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ABSTRACT_DESCRIPTION_ELEMENT
public static final java.lang.String NAME
public static final java.lang.String VALUE
protected java.lang.String elementName
protected java.lang.Object value
Constructor Detail |
protected AbstractDescriptionElement(java.lang.String elementName)
protected AbstractDescriptionElement(java.lang.String elementName, java.lang.Object value)
protected AbstractDescriptionElement()
Method Detail |
public java.lang.String getElementName()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
public abstract java.lang.Object extractElement(java.lang.Object componentDescription)
componentDescription
-
public abstract boolean processQueryItem(java.lang.Object componentDescription, AbstractComparison comparison)
componentDescription
- The component to compare to this objectcomparison
- The comparison element to use
public java.lang.String toString()
public DataObject toDataObject()
public static AbstractDescriptionElement fromDataObject(DataObject data)
data
-
public static AbstractDescriptionElement factory(java.lang.String name, java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |