|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.messages.GenericMessageImpl
DOM-Based implementation of the IGenericMessage interface.
| Field Summary | |
static String |
COUNT_ELT_NAME
Tag name for counts in this object. |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
KIND_ATTR_NAME
Tag name for kinds in this object. |
static String |
TYPE_ELT_NAME
Tag name for types in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.messages.IGenericMessage |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
GenericMessageImpl(Element elt)
|
|
| Method Summary | |
void |
clearCount()
Clear the count from this GenericMessage. |
void |
clearDescription()
Clear the description from this GenericMessage. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearKind()
Removes the kind attribute from this object. |
void |
clearType()
Clear the type from this GenericMessage. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
ICount |
getCount()
Get the count from this GenericMessage. |
IDescription |
getDescription()
Get the description from this GenericMessage. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
String |
getKind()
Gets the value of the kind attribute on this object. |
protected static SequenceOrder |
getSequenceOrder()
|
IMessageType |
getType()
Get the type from this GenericMessage. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasCount(ICount value)
Determine if this GenericMessage has the given count |
boolean |
hasDescription(IDescription value)
Determine if this GenericMessage has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasKind(String kind)
Determines if this object's kind attribute has the given value. |
boolean |
hasType(IMessageType value)
Determine if this GenericMessage has the given type |
boolean |
isEqual(IGenericMessage GenericMessageToCheck)
Determine if another GenericMessage has the same id as this one. |
boolean |
isEquivalent(IGenericMessage c)
Determine if another GenericMessage is equivalent to this one, ignoring ID's. |
void |
setCount(ICount value)
Set the count for this GenericMessage. |
void |
setDescription(IDescription value)
Set the description for this GenericMessage. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setId(String id)
Set the id attribute on this object. |
void |
setKind(String kind)
Set the kind attribute on this object. |
void |
setType(IMessageType value)
Set the type for this GenericMessage. |
void |
setXArch(IXArch xArch)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String ID_ATTR_NAME
public static final String KIND_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String COUNT_ELT_NAME
public static final String TYPE_ELT_NAME
protected Element elt
| Constructor Detail |
public GenericMessageImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setId(String id)
setId in interface IGenericMessageid - attribute value.public void clearId()
clearId in interface IGenericMessagepublic String getId()
getId in interface IGenericMessagenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IGenericMessageid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setKind(String kind)
setKind in interface IGenericMessagekind - attribute value.public void clearKind()
clearKind in interface IGenericMessagepublic String getKind()
getKind in interface IGenericMessagenull if that
attribute is not set.public boolean hasKind(String kind)
hasKind in interface IGenericMessagekind - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IGenericMessage
setDescription in interface IGenericMessagevalue - new descriptionpublic void clearDescription()
IGenericMessage
clearDescription in interface IGenericMessagepublic IDescription getDescription()
IGenericMessage
getDescription in interface IGenericMessagepublic boolean hasDescription(IDescription value)
IGenericMessage
hasDescription in interface IGenericMessagevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void setCount(ICount value)
IGenericMessage
setCount in interface IGenericMessagevalue - new countpublic void clearCount()
IGenericMessage
clearCount in interface IGenericMessagepublic ICount getCount()
IGenericMessage
getCount in interface IGenericMessagepublic boolean hasCount(ICount value)
IGenericMessage
hasCount in interface IGenericMessagevalue - count to compare
true if the counts are equivalent,
false otherwisepublic void setType(IMessageType value)
IGenericMessage
setType in interface IGenericMessagevalue - new typepublic void clearType()
IGenericMessage
clearType in interface IGenericMessagepublic IMessageType getType()
IGenericMessage
getType in interface IGenericMessagepublic boolean hasType(IMessageType value)
IGenericMessage
hasType in interface IGenericMessagevalue - type to compare
true if the types are equivalent,
false otherwisepublic boolean isEqual(IGenericMessage GenericMessageToCheck)
IGenericMessage
isEqual in interface IGenericMessageGenericMessageToCheck - GenericMessage to compare with this
one.public boolean isEquivalent(IGenericMessage c)
IGenericMessage
isEquivalent in interface IGenericMessagec - GenericMessage to compare to this one.
true if all the child elements of this
GenericMessage are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||