|
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
edu.uci.isr.xarch.messages.NamedPropertyMessageImpl
DOM-Based implementation of the INamedPropertyMessage interface.
| Field Summary | |
static String |
NAME_ELT_NAME
Tag name for names in this object. |
static String |
NAMED_PROPERTY_ELT_NAME
Tag name for namedPropertys in this object. |
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from class edu.uci.isr.xarch.messages.GenericMessageImpl |
COUNT_ELT_NAME, DESCRIPTION_ELT_NAME, elt, ID_ATTR_NAME, KIND_ATTR_NAME, TYPE_ELT_NAME, xArch |
| Fields inherited from interface edu.uci.isr.xarch.messages.INamedPropertyMessage |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
NamedPropertyMessageImpl(Element elt)
|
|
| Method Summary | |
void |
addNamedProperty(INamedProperty newNamedProperty)
Add a namedProperty to this NamedPropertyMessage. |
void |
addNamedPropertys(Collection namedPropertys)
Add a collection of namedPropertys to this NamedPropertyMessage. |
void |
clearName()
Clear the name from this NamedPropertyMessage. |
void |
clearNamedPropertys()
Remove all namedPropertys from this NamedPropertyMessage. |
IXArchElement |
cloneElement(int depth)
|
Collection |
getAllNamedPropertys()
Get all the namedPropertys from this NamedPropertyMessage. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
IMessageName |
getName()
Get the name from this NamedPropertyMessage. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
boolean |
hasAllNamedPropertys(Collection namedPropertysToCheck)
Determine if this NamedPropertyMessage contains each element in the given set of namedPropertys. |
boolean |
hasName(IMessageName value)
Determine if this NamedPropertyMessage has the given name |
boolean |
hasNamedProperty(INamedProperty namedPropertyToCheck)
Determine if this NamedPropertyMessage contains a given namedProperty. |
Collection |
hasNamedPropertys(Collection namedPropertysToCheck)
Determine if this NamedPropertyMessage contains the given set of namedPropertys. |
boolean |
isEquivalent(INamedPropertyMessage c)
Determine if another NamedPropertyMessage is equivalent to this one, ignoring ID's. |
void |
removeNamedProperty(INamedProperty namedPropertyToRemove)
Remove the given namedProperty from this NamedPropertyMessage. |
void |
removeNamedPropertys(Collection namedPropertys)
Remove all the given namedPropertys from this NamedPropertyMessage. |
void |
setName(IMessageName value)
Set the name for this NamedPropertyMessage. |
| Methods inherited from class edu.uci.isr.xarch.messages.GenericMessageImpl |
clearCount, clearDescription, clearId, clearKind, clearType, equals, getCount, getDescription, getDOMNode, getId, getKind, getType, getXArch, hasCount, hasDescription, hashCode, hasId, hasKind, hasType, isEqual, isEquivalent, setCount, setDescription, setDOMNode, setId, setKind, setType, setXArch |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.uci.isr.xarch.messages.IGenericMessage |
clearCount, clearDescription, clearId, clearKind, clearType, getCount, getDescription, getId, getKind, getType, hasCount, hasDescription, hasId, hasKind, hasType, isEqual, isEquivalent, setCount, setDescription, setId, setKind, setType |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
getXArch, setXArch |
| Methods inherited from interface edu.uci.isr.xarch.DOMBased |
getDOMNode, setDOMNode |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
public static final String NAME_ELT_NAME
public static final String NAMED_PROPERTY_ELT_NAME
| Constructor Detail |
public NamedPropertyMessageImpl(Element elt)
| Method Detail |
protected static SequenceOrder getSequenceOrder()
public IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementcloneElement in class GenericMessageImplpublic XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementgetTypeMetadata in class GenericMessageImplpublic XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementgetInstanceMetadata in class GenericMessageImplpublic void setName(IMessageName value)
INamedPropertyMessage
setName in interface INamedPropertyMessagevalue - new namepublic void clearName()
INamedPropertyMessage
clearName in interface INamedPropertyMessagepublic IMessageName getName()
INamedPropertyMessage
getName in interface INamedPropertyMessagepublic boolean hasName(IMessageName value)
INamedPropertyMessage
hasName in interface INamedPropertyMessagevalue - name to compare
true if the names are equivalent,
false otherwisepublic void addNamedProperty(INamedProperty newNamedProperty)
INamedPropertyMessage
addNamedProperty in interface INamedPropertyMessagenewNamedProperty - namedProperty to add.public void addNamedPropertys(Collection namedPropertys)
INamedPropertyMessage
addNamedPropertys in interface INamedPropertyMessagenamedPropertys - namedPropertys to add.public void clearNamedPropertys()
INamedPropertyMessage
clearNamedPropertys in interface INamedPropertyMessagepublic void removeNamedProperty(INamedProperty namedPropertyToRemove)
INamedPropertyMessageisEquivalent(...) function.
removeNamedProperty in interface INamedPropertyMessagenamedPropertyToRemove - namedProperty to remove.public void removeNamedPropertys(Collection namedPropertys)
INamedPropertyMessageisEquivalent(...) function.
removeNamedPropertys in interface INamedPropertyMessagenamedPropertys - namedProperty to remove.public Collection getAllNamedPropertys()
INamedPropertyMessage
getAllNamedPropertys in interface INamedPropertyMessagepublic boolean hasNamedProperty(INamedProperty namedPropertyToCheck)
INamedPropertyMessage
hasNamedProperty in interface INamedPropertyMessagetrue if this NamedPropertyMessage contains the given
namedPropertyToCheck, false otherwise.public Collection hasNamedPropertys(Collection namedPropertysToCheck)
INamedPropertyMessage
hasNamedPropertys in interface INamedPropertyMessagenamedPropertysToCheck - namedPropertys to check for.
java.lang.Boolean. If the ith
element in namedPropertys was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllNamedPropertys(Collection namedPropertysToCheck)
INamedPropertyMessage
hasAllNamedPropertys in interface INamedPropertyMessagenamedPropertysToCheck - namedPropertys to check for.
true if every element in
namedPropertys is found in this NamedPropertyMessage,
false otherwise.public boolean isEquivalent(INamedPropertyMessage c)
INamedPropertyMessage
isEquivalent in interface INamedPropertyMessagec - NamedPropertyMessage to compare to this one.
true if all the child elements of this
NamedPropertyMessage 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 | |||||||||