|
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.types.ConnectorTypeImpl
DOM-Based implementation of the IConnectorType interface.
| Field Summary | |
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 |
SIGNATURE_ELT_NAME
Tag name for signatures in this object. |
static String |
SUB_ARCHITECTURE_ELT_NAME
Tag name for subArchitectures in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.types.IConnectorType |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ConnectorTypeImpl(Element elt)
|
|
| Method Summary | |
void |
addSignature(ISignature newSignature)
Add a signature to this ConnectorType. |
void |
addSignatures(Collection signatures)
Add a collection of signatures to this ConnectorType. |
void |
clearDescription()
Clear the description from this ConnectorType. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearSignatures()
Remove all signatures from this ConnectorType. |
void |
clearSubArchitecture()
Clear the subArchitecture from this ConnectorType. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllSignatures()
Get all the signatures from this ConnectorType. |
IDescription |
getDescription()
Get the description from this ConnectorType. |
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. |
protected static SequenceOrder |
getSequenceOrder()
|
ISignature |
getSignature(String id)
Gets the signature from this ConnectorType with the given id. |
Collection |
getSignatures(Collection ids)
Gets the signatures from this ConnectorType with the given ids. |
ISubArchitecture |
getSubArchitecture()
Get the subArchitecture from this ConnectorType. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllSignatures(Collection signaturesToCheck)
Determine if this ConnectorType contains each element in the given set of signatures. |
boolean |
hasDescription(IDescription value)
Determine if this ConnectorType has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasSignature(ISignature signatureToCheck)
Determine if this ConnectorType contains a given signature. |
Collection |
hasSignatures(Collection signaturesToCheck)
Determine if this ConnectorType contains the given set of signatures. |
boolean |
hasSubArchitecture(ISubArchitecture value)
Determine if this ConnectorType has the given subArchitecture |
boolean |
isEqual(IConnectorType ConnectorTypeToCheck)
Determine if another ConnectorType has the same id as this one. |
boolean |
isEquivalent(IConnectorType c)
Determine if another ConnectorType is equivalent to this one, ignoring ID's. |
void |
removeSignature(ISignature signatureToRemove)
Remove the given signature from this ConnectorType. |
void |
removeSignatures(Collection signatures)
Remove all the given signatures from this ConnectorType. |
void |
setDescription(IDescription value)
Set the description for this ConnectorType. |
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 |
setSubArchitecture(ISubArchitecture value)
Set the subArchitecture for this ConnectorType. |
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 DESCRIPTION_ELT_NAME
public static final String SIGNATURE_ELT_NAME
public static final String SUB_ARCHITECTURE_ELT_NAME
protected Element elt
| Constructor Detail |
public ConnectorTypeImpl(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 IConnectorTypeid - attribute value.public void clearId()
clearId in interface IConnectorTypepublic String getId()
getId in interface IConnectorTypenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IConnectorTypeid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IConnectorType
setDescription in interface IConnectorTypevalue - new descriptionpublic void clearDescription()
IConnectorType
clearDescription in interface IConnectorTypepublic IDescription getDescription()
IConnectorType
getDescription in interface IConnectorTypepublic boolean hasDescription(IDescription value)
IConnectorType
hasDescription in interface IConnectorTypevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addSignature(ISignature newSignature)
IConnectorType
addSignature in interface IConnectorTypenewSignature - signature to add.public void addSignatures(Collection signatures)
IConnectorType
addSignatures in interface IConnectorTypesignatures - signatures to add.public void clearSignatures()
IConnectorType
clearSignatures in interface IConnectorTypepublic void removeSignature(ISignature signatureToRemove)
IConnectorTypeisEquivalent(...) function.
removeSignature in interface IConnectorTypesignatureToRemove - signature to remove.public void removeSignatures(Collection signatures)
IConnectorTypeisEquivalent(...) function.
removeSignatures in interface IConnectorTypesignatures - signature to remove.public Collection getAllSignatures()
IConnectorType
getAllSignatures in interface IConnectorTypepublic boolean hasSignature(ISignature signatureToCheck)
IConnectorType
hasSignature in interface IConnectorTypetrue if this ConnectorType contains the given
signatureToCheck, false otherwise.public Collection hasSignatures(Collection signaturesToCheck)
IConnectorType
hasSignatures in interface IConnectorTypesignaturesToCheck - signatures to check for.
java.lang.Boolean. If the ith
element in signatures 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 hasAllSignatures(Collection signaturesToCheck)
IConnectorType
hasAllSignatures in interface IConnectorTypesignaturesToCheck - signatures to check for.
true if every element in
signatures is found in this ConnectorType,
false otherwise.public ISignature getSignature(String id)
IConnectorType
getSignature in interface IConnectorTypeid - ID to look for.
null if not found.public Collection getSignatures(Collection ids)
IConnectorType
getSignatures in interface IConnectorTypeids - ID to look for.
public void setSubArchitecture(ISubArchitecture value)
IConnectorType
setSubArchitecture in interface IConnectorTypevalue - new subArchitecturepublic void clearSubArchitecture()
IConnectorType
clearSubArchitecture in interface IConnectorTypepublic ISubArchitecture getSubArchitecture()
IConnectorType
getSubArchitecture in interface IConnectorTypepublic boolean hasSubArchitecture(ISubArchitecture value)
IConnectorType
hasSubArchitecture in interface IConnectorTypevalue - subArchitecture to compare
true if the subArchitectures are equivalent,
false otherwisepublic boolean isEqual(IConnectorType ConnectorTypeToCheck)
IConnectorType
isEqual in interface IConnectorTypeConnectorTypeToCheck - ConnectorType to compare with this
one.public boolean isEquivalent(IConnectorType c)
IConnectorType
isEquivalent in interface IConnectorTypec - ConnectorType to compare to this one.
true if all the child elements of this
ConnectorType 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 | |||||||||