context.arch.discoverer.componentDescription
Class HostnameElement

java.lang.Object
  extended bycontext.arch.discoverer.componentDescription.AbstractDescriptionElement
      extended bycontext.arch.discoverer.componentDescription.HostnameElement

public class HostnameElement
extends AbstractDescriptionElement

Author:
Agathe

Field Summary
static java.lang.String HOSTADDRESS_ELEMENT
           
static java.lang.String HOSTNAME_ELEMENT
           
 
Fields inherited from class context.arch.discoverer.componentDescription.AbstractDescriptionElement
ABSTRACT_DESCRIPTION_ELEMENT, elementName, NAME, value, VALUE
 
Constructor Summary
HostnameElement()
          Creates new IdElement
HostnameElement(java.lang.Object value)
           
 
Method Summary
 java.lang.Object extractElement(java.lang.Object componentDescription)
          Returns the element from the componentDescription corresponding to this description element
 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 setValue(java.lang.Object value)
          Sets the value of this element
 
Methods inherited from class context.arch.discoverer.componentDescription.AbstractDescriptionElement
factory, fromDataObject, getElementName, getValue, toDataObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOSTNAME_ELEMENT

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

HOSTADDRESS_ELEMENT

public static final java.lang.String HOSTADDRESS_ELEMENT
See Also:
Constant Field Values
Constructor Detail

HostnameElement

public HostnameElement()
Creates new IdElement


HostnameElement

public HostnameElement(java.lang.Object value)
Method Detail

setValue

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

Overrides:
setValue in class AbstractDescriptionElement

extractElement

public java.lang.Object extractElement(java.lang.Object componentDescription)
Description copied from class: AbstractDescriptionElement
Returns the element from the componentDescription corresponding to this description element

Specified by:
extractElement in class AbstractDescriptionElement
Parameters:
componentDescription -
Returns:
Object

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