context.arch.discoverer.componentDescription
Class AttributeElement

java.lang.Object
  extended bycontext.arch.discoverer.componentDescription.AbstractDescriptionElement
      extended bycontext.arch.discoverer.componentDescription.AttributeElement
Direct Known Subclasses:
ConstantAttributeElement, NonConstantAttributeElement

public abstract class AttributeElement
extends AbstractDescriptionElement

Author:
newbergr

Field Summary
static java.lang.String SEPARATOR
           
protected  java.lang.String type
           
 
Fields inherited from class context.arch.discoverer.componentDescription.AbstractDescriptionElement
ABSTRACT_DESCRIPTION_ELEMENT, elementName, NAME, value, VALUE
 
Constructor Summary
protected AttributeElement(java.lang.Object attributeNameValue)
           
protected AttributeElement(java.lang.Object stringName, java.lang.Object stringValue)
           
protected AttributeElement(java.lang.Object stringName, java.lang.Object stringValue, java.lang.String type)
           
 
Method Summary
abstract  java.lang.String getNameElement()
           
abstract  java.lang.String getNameValueElement()
           
abstract  java.lang.String getValueElement()
           
 boolean processQueryItem(java.lang.Object componentDescription, AbstractComparison operator)
          Returns true if the comparison between the value of this object and the value of the corresponding field of the componentDescription returns true
 void setAttributeName(java.lang.Object attName)
           
 void setAttributeNameValue(java.lang.Object attName, java.lang.Object attValue)
           
 void setAttributeValue(java.lang.Object attValue)
           
 void setValue(java.lang.Object attribute)
          Sets the value of this element
 java.lang.String toString()
          Returns a printable version
 
Methods inherited from class context.arch.discoverer.componentDescription.AbstractDescriptionElement
extractElement, factory, fromDataObject, getElementName, getValue, toDataObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

type

protected java.lang.String type
Constructor Detail

AttributeElement

protected AttributeElement(java.lang.Object attributeNameValue)

AttributeElement

protected AttributeElement(java.lang.Object stringName,
                           java.lang.Object stringValue)

AttributeElement

protected AttributeElement(java.lang.Object stringName,
                           java.lang.Object stringValue,
                           java.lang.String type)
Method Detail

getNameElement

public abstract java.lang.String getNameElement()

getValueElement

public abstract java.lang.String getValueElement()

getNameValueElement

public abstract java.lang.String getNameValueElement()

setValue

public void setValue(java.lang.Object attribute)
Description copied from class: AbstractDescriptionElement
Sets the value of this element

Overrides:
setValue in class AbstractDescriptionElement

setAttributeName

public void setAttributeName(java.lang.Object attName)

setAttributeValue

public void setAttributeValue(java.lang.Object attValue)

setAttributeNameValue

public void setAttributeNameValue(java.lang.Object attName,
                                  java.lang.Object attValue)

processQueryItem

public boolean processQueryItem(java.lang.Object componentDescription,
                                AbstractComparison operator)
Description copied from class: AbstractDescriptionElement
Returns true if the comparison between the value of this object and the value of the corresponding field of the componentDescription returns true

Specified by:
processQueryItem in class AbstractDescriptionElement
Parameters:
componentDescription - The component to compare to this object
operator - The comparison element to use
Returns:
boolean

toString

public java.lang.String toString()
Description copied from class: AbstractDescriptionElement
Returns a printable version

Overrides:
toString in class AbstractDescriptionElement