|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.logging.events.cbe.impl.AssociationEngineImpl
Class representing an implementation of an AssociationEngine.
The following description is from the Common Base Event v1.0.1 specification entitled "Canonical Situation Data Format: The Common Base Event V1.0.1":
The AssociationEngine identifies the application that establishes associations among related or associated events. In addition, it provides properties to describe the types of the associations.
The AssociationEngine is a standalone entity in the XML schema and the AssociatedEvents created by the application that is identified by the AssociationEngine refer to it. This will eliminate the need to repeat the same data in every associated event.
| Field Summary | |
|---|---|
protected java.lang.String |
id
The cached value of the ' Id' attribute.
|
protected java.lang.String |
name
The cached value of the ' Name' attribute. |
protected java.lang.String |
type
The cached value of the ' Type' attribute. |
| Fields inherited from interface org.eclipse.tptp.logging.events.cbe.AssociationEngine |
|---|
TYPE_CAUSED_BY, TYPE_CLEARED, TYPE_CONTAIN, TYPE_CORRELATED, TYPE_MULTI_PART |
| Constructor Summary | |
|---|---|
protected |
AssociationEngineImpl()
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Return a cloned (copy by value) object of this object. |
boolean |
equals(java.lang.Object object)
Overrides the java.lang.Object's equals() API to
determine if the parameter object is equal to this object.
|
java.lang.String |
getId()
Returns the value of the 'Id' attribute. |
java.lang.String |
getName()
Returns the value of the 'Name' attribute. |
java.lang.String |
getType()
Returns the value of the 'Type' attribute. |
void |
init()
Resets the object's properties to their initial (e.g. null) state. |
void |
setId(java.lang.String newId)
Sets the value of the ' Id'
attribute.
|
void |
setName(java.lang.String newName)
Sets the value of the ' Name'
attribute.
|
void |
setType(java.lang.String newType)
Sets the value of the ' Type'
attribute.
|
java.lang.String |
toString()
|
void |
validate()
Checks whether the contents of the instance conform to the Common Base Event specification as described in "Canonical Situation Data Format: The Common Base Event V1.0.1". |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String id
Id' attribute.
getId()protected java.lang.String name
Name' attribute.
getName()protected java.lang.String type
Type' attribute.
getType()| Constructor Detail |
protected AssociationEngineImpl()
| Method Detail |
public void setId(java.lang.String newId)
AssociationEngine
Sets the value of the '
Id'
attribute.
The primary identifier for the element. This property must be globally unique. The recommend value for this is either a 128 bit or 256 bit Globally Unique Id (represented as hex string). Once this value is set it must never be changed. This is a required property.
setId in interface AssociationEnginenewId - the new value of the 'Id' attribute.AssociationEngine.getId()public java.lang.String getId()
AssociationEngineReturns the value of the 'Id' attribute.
getId in interface AssociationEngineAssociationEngine.setId(String)public void setName(java.lang.String newName)
AssociationEngine
Sets the value of the '
Name'
attribute.
The name of the application that creates the association (for example, my correlation engine name). This is a required property. The string length for this property must not exceed 64 characters.
setName in interface AssociationEnginenewName - the new value of the 'Name' attribute.AssociationEngine.getName()public java.lang.String getName()
AssociationEngineReturns the value of the 'Name' attribute.
getName in interface AssociationEngineAssociationEngine.setName(String)public void setType(java.lang.String newType)
AssociationEngine
Sets the value of the '
Type'
attribute.
This property should contain the type of association created by this AssociationEngine. Some well defined associations are:
This is a required property. The string length for this property must not exceed 64 characters.
setType in interface AssociationEnginenewType - the new value of the 'Type' attribute.AssociationEngine.getType()public java.lang.String getType()
AssociationEngineReturns the value of the 'Type' attribute.
getType in interface AssociationEngineAssociationEngine.setType(String)public boolean equals(java.lang.Object object)
java.lang.Object's equals() API to
determine if the parameter object is equal to this object.
object - The java.lang.Object to be compared to this object.
object, otherwise false.Object.equals(java.lang.Object)public java.lang.String toString()
public void validate()
throws ValidationException
validate in interface AssociationEngineValidationException - If the event instance does not conform to the Common Base Event specification.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
This is a deep copy version, in which all the objects within this object will be copied by value.
java.lang.CloneNotSupportedException - If a instance variable of this object does not implement the Cloneable interface.public void init()
init in interface AssociationEngine
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||