|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.discoverer.ComponentDescription
This class allows to store a component's description Has changed Vectors into ArrayList all server and widget att merged all callback / service of widget and server merged
BaseObject
Field Summary | |
java.lang.String |
classname
To component classname |
java.lang.String |
hostaddress
The component hostaddress |
java.lang.String |
hostname
The component hostname |
java.lang.String |
id
The component id |
java.lang.String |
location
The component location |
int |
port
The component port |
java.lang.String |
type
The component type : Discoverer.APPLICATION or Discoverer.WIDGET or Discoverer.SERVER or Discoverer.INTERPRETER |
java.lang.String |
version
The component version |
Constructor Summary | |
ComponentDescription()
The constructor that creates a new ComponentDescription with no parameters |
Method Summary | |
java.lang.Object |
clone()
|
static ComponentDescription |
dataObjectToComponentDescription(DataObject dataObject)
This method allows to return the ComponentDescription version of a DataObject |
boolean |
equals(ComponentDescription otherComponent)
This method allows to compare 2 ComponentDescription objects. |
java.util.SortedSet |
getAllAttributes()
Returns an enumeration of the all non constant attributes (non constant and constant) |
DataObject |
getBasicDataObject()
This method allows to return a DataObject containing : - the component id - the component hostname - the component port |
java.util.SortedSet |
getCallbacks()
Returns an enumeration of the callbacks |
java.util.SortedSet |
getConstantAttributeNames()
Returns an enumeration of the constant attributes names |
java.util.SortedSet |
getConstantAttributeNameValues()
|
java.util.SortedSet |
getConstantAttributes()
Returns an enumeration of the constant attribute names&values |
java.util.SortedSet |
getConstantAttributeValues()
|
java.util.SortedSet |
getInAttributes()
Returns an enumeration of the incoming attributes |
java.util.SortedSet |
getJustNameOfWidgetCallbacks()
Returns an enumeration of the widget callbacks, but if the callback name contains an underscore, then it returns just the last word. |
java.util.SortedSet |
getNonConstantAttributes()
Returns an enumeration of the non constant attributes |
java.util.SortedSet |
getOutAttributes()
Returns an enumeration of the outgoing attributes |
java.util.SortedSet |
getServices()
Returns an enumeration of the widget services |
java.util.SortedSet |
getSubscribers()
Returns an enumeration of thesubscribers |
Error |
setClassname(DataObject data)
Sets the classname. |
void |
setConstantAttribute(AttributeNameValue data)
Adds the data parameter to the constant attributes |
Error |
setConstantAttributes(DataObject data)
Adds a set of attribute names to the constant attributes. |
Error |
setHostaddress(DataObject data)
Sets the component hostaddress. |
Error |
setHostname(DataObject data)
Sets the component hostname. |
Error |
setId(DataObject data)
Sets the id. |
void |
setInAttribute(Attribute data)
Adds the data parameter to the incoming attributes |
Error |
setInAttributes(DataObject data)
Adds a set of incoming attribute names to the cincoming attributes. |
Error |
setLocation(DataObject data)
Sets the component location. |
void |
setNonConstantAttribute(Attribute data)
Adds the data parameter to the non constant attributes |
Error |
setNonConstantAttributes(DataObject data)
Adds a set of attribute names to the non constant attributes. |
void |
setOutAttribute(Attribute data)
Adds the data parameter to the outgoing attributes |
Error |
setOutAttributes(DataObject data)
Adds a set of outgoing attributes to the outgoing attributes. |
Error |
setPort(DataObject data)
Sets the component port. |
void |
setServerCallback(java.lang.String data)
Adds the data parameter to the server callbacks |
Error |
setServerCallbacks(DataObject data)
Adds a set of server callback names. |
void |
setServerConstantAttribute(Attribute data)
Adds the data parameter to the server constant attributes |
Error |
setServerConstantAttributes(DataObject data)
Adds a set of server constant attributes to the server attributes. |
void |
setServerNonConstantAttribute(Attribute data)
Adds the data parameter to the server non constant attributes |
Error |
setServerNonConstantAttributes(DataObject data)
Adds a set of server non constant attributes to the server attributes. |
void |
setServerService(java.lang.String data)
Adds the data parameter to the server services |
Error |
setServerServices(DataObject data)
Adds a set of server service names. |
void |
setSubscriber(java.lang.String data)
Adds the data parameter to the subscriber attributes |
Error |
setSubscribers(DataObject data)
Adds a set of subscriber names to thesubscriber attributes. |
Error |
setType(DataObject data)
Sets the component type. |
Error |
setVersion(DataObject data)
Sets the component version. |
void |
setWidgetCallback(java.lang.String data)
Adds the data parameter to the widget callbacks |
Error |
setWidgetCallbacks(DataObject data)
Adds a set of widget callback names to the callback. |
void |
setWidgetService(java.lang.String data)
Adds the data parameter to the widget services |
Error |
setWidgetServices(DataObject data)
Adds a set of service names. |
DataObject |
toDataObject()
|
java.lang.String |
toSmallString()
|
java.lang.String |
toSmallStringNL()
|
java.lang.String |
toString()
Returns a printable version of ComponentDescription |
java.lang.String |
toStringNL()
Returns a printable version of ComponentDescription with new lines |
Error |
updateDescription(DataObject data)
This method allows to get the modified descriptions fields and update the component Fields that can be modified : the non constant attributes (widget, server) and the subscribers, It gets a NON_CONSTANT_ATTRIBUTE_NAME_VALUES The default update type is the add type (Discoverer.UPDATE_ADD_TYPE) |
Error |
updateDescription(DataObject data,
java.lang.String updateType)
This method allows to get the modified descriptions fields and update the component Fields that can be modified : the non constant attributes (widget, server) and the subscribers, It gets a NON_CONSTANT_ATTRIBUTE_NAME_VALUES |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String id
public java.lang.String classname
public java.lang.String hostname
public java.lang.String hostaddress
public java.lang.String location
public java.lang.String type
public java.lang.String version
public int port
Constructor Detail |
public ComponentDescription()
Method Detail |
public static ComponentDescription dataObjectToComponentDescription(DataObject dataObject)
dataObject
- The DataObject containing the description of a context object
public DataObject toDataObject()
public java.lang.String toString()
public java.lang.String toSmallString()
public java.lang.String toSmallStringNL()
public java.lang.String toStringNL()
public void setConstantAttribute(AttributeNameValue data)
data
- The name of the constant attributeAttributes
public Error setConstantAttributes(DataObject data)
data
- The DataObject containing a set of constant attribute names
Attributes
public void setNonConstantAttribute(Attribute data)
data
- The non constant attributeAttribute
public Error setNonConstantAttributes(DataObject data)
data
- The DataObject containing a set of non constant attribute names
Attribute
public void setInAttribute(Attribute data)
data
- The incoming attributeAttribute
public Error setInAttributes(DataObject data)
data
- The DataObject containing a set of incoming attribute names
Attribute
public void setOutAttribute(Attribute data)
data
- The outgoing attributeAttribute
public Error setOutAttributes(DataObject data)
data
- The DataObject containing a set of outgoing attribute names
Attribute
public Error setServerConstantAttributes(DataObject data)
data
- The DataObject containing a set of server attribute names
Attribute
public Error setServerNonConstantAttributes(DataObject data)
data
- The DataObject containing a set of server attribute names
Attribute
public void setServerConstantAttribute(Attribute data)
data
- The server constant attributeAttribute
public void setServerNonConstantAttribute(Attribute data)
data
- The servernopn constant attributeAttribute
public void setSubscriber(java.lang.String data)
data
- The name of the subscriber attributeAttribute
public Error setSubscribers(DataObject data)
data
- The DataObject containing a set of subscriber attribute names
Attribute
public void setServerService(java.lang.String data)
data
- The name of the server servicesAttribute
public Error setServerServices(DataObject data)
data
- The DataObject containing a set of server services names
Attribute
public void setWidgetCallback(java.lang.String data)
data
- The name of the widget callbacksAttribute
public Error setWidgetCallbacks(DataObject data)
data
- The DataObject containing a set of widget callback names
Attribute
public void setWidgetService(java.lang.String data)
data
- The name of the widget servicesAttribute
public Error setWidgetServices(DataObject data)
data
- The DataObject containing a set of widget services names
Attribute
public void setServerCallback(java.lang.String data)
data
- The name of the server callbacksAttribute
public Error setServerCallbacks(DataObject data)
data
- The DataObject containing a set of server callback names
Attribute
public Error setId(DataObject data)
data
- The DataObject containing the id
BaseObject.ID
public Error setClassname(DataObject data)
data
- The DataObject containing the classname
Discoverer
public Error setType(DataObject data)
data
- The DataObject containing the type
Discoverer
public Error setHostname(DataObject data)
data
- The DataObject containing the hostname
Discoverer
public Error setHostaddress(DataObject data)
data
- The DataObject containing the hostaddress
Discoverer
public Error setPort(DataObject data)
data
- The DataObject containing the port
Discoverer
public Error setLocation(DataObject data)
data
- The DataObject containing the location
Discoverer
public Error setVersion(DataObject data)
data
- The DataObject containing the version
Discoverer
public Error updateDescription(DataObject data)
data
- The DataObject containing the modified fields
DataObject
,
Discoverer
public Error updateDescription(DataObject data, java.lang.String updateType)
data
- The DataObject containing the modified fields
DataObject
,
Discoverer
public java.util.SortedSet getConstantAttributes()
public java.util.SortedSet getNonConstantAttributes()
public java.util.SortedSet getAllAttributes()
public java.util.SortedSet getInAttributes()
public java.util.SortedSet getOutAttributes()
public java.util.SortedSet getConstantAttributeNames()
public java.util.SortedSet getConstantAttributeValues()
public java.util.SortedSet getConstantAttributeNameValues()
public java.util.SortedSet getCallbacks()
public java.util.SortedSet getJustNameOfWidgetCallbacks()
public java.util.SortedSet getServices()
public java.util.SortedSet getSubscribers()
public DataObject getBasicDataObject()
public boolean equals(ComponentDescription otherComponent)
otherComponent
- The ComponentDescription to compare to
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |