|
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.ContextDataElementImpl
Interface representing a ContextDataElement.
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 ContextDataElement type defines the contexts that this event references. This complex type holds data that is used to assist with problem diagnostics by correlating messages or events generated during execution of a unit of work.
| Field Summary | |
|---|---|
protected java.lang.String |
contextId
The cached value of the ' Context Id'
attribute. |
protected java.lang.String |
contextValue
The cached value of the ' Context Value' 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. |
| Constructor Summary | |
|---|---|
protected |
ContextDataElementImpl()
|
| 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 |
getContextId()
Returns the value of the 'Context Id' attribute. |
java.lang.String |
getContextValue()
Returns the value of the 'Context Value' 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 |
setContextId(java.lang.String newContextId)
Sets the value of the ' Context Id'
attribute.
|
void |
setContextValue(java.lang.String newContextValue)
Sets the value of the ' Context Value'
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 contextId
Context Id'
attribute.
getContextId()protected java.lang.String contextValue
Context Value' attribute.
getContextValue()protected java.lang.String name
Name' attribute.
getName()protected java.lang.String type
Type' attribute.
getType()| Constructor Detail |
protected ContextDataElementImpl()
| Method Detail |
public java.lang.String getContextId()
ContextDataElementReturns the value of the 'Context Id' attribute.
getContextId in interface ContextDataElementContextDataElement.setContextId(String)public void setContextId(java.lang.String newContextId)
ContextDataElementContext Id'
attribute.
This property is the reference to the globally unique identifier of the element that contains the context.
This is required unless contextValue specifies a value.
setContextId in interface ContextDataElementnewContextId - the new value of the 'Context Id' attribute.ContextDataElement.getContextId()public java.lang.String getContextValue()
ContextDataElementReturns the value of the 'Context Value' attribute.
getContextValue in interface ContextDataElementContextDataElement.setContextValue(String)public void setContextValue(java.lang.String newContextValue)
ContextDataElementContext Value'
attribute.
The value of the context with respect to the implementation of the context.
This is required unless contextId specifies a value. The string length for this property must not exceed 1024 characters.
setContextValue in interface ContextDataElementnewContextValue - the new value of the 'Context Value' attribute.ContextDataElement.getContextValue()public java.lang.String getName()
ContextDataElementReturns the value of the 'Name' attribute.
getName in interface ContextDataElementContextDataElement.setName(String)public void setName(java.lang.String newName)
ContextDataElementName'
attribute.
Name of the application that created this context data element.
This is a required property. The string length for this property must not exceed 64 characters.
setName in interface ContextDataElementnewName - the new value of the 'Name' attribute.ContextDataElement.getName()public java.lang.String getType()
ContextDataElementReturns the value of the 'Type' attribute.
getType in interface ContextDataElementContextDataElement.setType(String)public void setType(java.lang.String newType)
ContextDataElementType'
attribute.
The data type of the contextValue property.
This is a required property. The string length for this property must not exceed 64 characters.
setType in interface ContextDataElementnewType - the new value of the 'Type' attribute.ContextDataElement.getType()public java.lang.String toString()
public void validate()
throws ValidationException
validate in interface ContextDataElementValidationException - If the event instance does not conform to the Common Base Event specification.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.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 ContextDataElement
|
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 | ||||||||||