|
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.instance.SubArchitectureImpl
DOM-Based implementation of the ISubArchitecture interface.
| Field Summary | |
static String |
ARCH_INSTANCE_ELT_NAME
Tag name for archInstances in this object. |
protected Element |
elt
|
static String |
INTERFACE_INSTANCE_MAPPING_ELT_NAME
Tag name for interfaceInstanceMappings in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.instance.ISubArchitecture |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
SubArchitectureImpl(Element elt)
|
|
| Method Summary | |
void |
addInterfaceInstanceMapping(IInterfaceInstanceMapping newInterfaceInstanceMapping)
Add a interfaceInstanceMapping to this SubArchitecture. |
void |
addInterfaceInstanceMappings(Collection interfaceInstanceMappings)
Add a collection of interfaceInstanceMappings to this SubArchitecture. |
void |
clearArchInstance()
Clear the archInstance from this SubArchitecture. |
void |
clearInterfaceInstanceMappings()
Remove all interfaceInstanceMappings from this SubArchitecture. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllInterfaceInstanceMappings()
Get all the interfaceInstanceMappings from this SubArchitecture. |
IArchInstance |
getArchInstance()
Get the archInstance from this SubArchitecture. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
IInterfaceInstanceMapping |
getInterfaceInstanceMapping(String id)
Gets the interfaceInstanceMapping from this SubArchitecture with the given id. |
Collection |
getInterfaceInstanceMappings(Collection ids)
Gets the interfaceInstanceMappings from this SubArchitecture with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
Determine if this SubArchitecture contains each element in the given set of interfaceInstanceMappings. |
boolean |
hasArchInstance(IArchInstance value)
Determine if this SubArchitecture has the given archInstance |
int |
hashCode()
|
boolean |
hasInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToCheck)
Determine if this SubArchitecture contains a given interfaceInstanceMapping. |
Collection |
hasInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
Determine if this SubArchitecture contains the given set of interfaceInstanceMappings. |
boolean |
isEquivalent(ISubArchitecture c)
Determine if another SubArchitecture is equivalent to this one, ignoring ID's. |
void |
removeInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToRemove)
Remove the given interfaceInstanceMapping from this SubArchitecture. |
void |
removeInterfaceInstanceMappings(Collection interfaceInstanceMappings)
Remove all the given interfaceInstanceMappings from this SubArchitecture. |
void |
setArchInstance(IArchInstance value)
Set the archInstance for this SubArchitecture. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
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 ARCH_INSTANCE_ELT_NAME
public static final String INTERFACE_INSTANCE_MAPPING_ELT_NAME
protected Element elt
| Constructor Detail |
public SubArchitectureImpl(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 setArchInstance(IArchInstance value)
ISubArchitecture
setArchInstance in interface ISubArchitecturevalue - new archInstancepublic void clearArchInstance()
ISubArchitecture
clearArchInstance in interface ISubArchitecturepublic IArchInstance getArchInstance()
ISubArchitecture
getArchInstance in interface ISubArchitecturepublic boolean hasArchInstance(IArchInstance value)
ISubArchitecture
hasArchInstance in interface ISubArchitecturevalue - archInstance to compare
true if the archInstances are equivalent,
false otherwisepublic void addInterfaceInstanceMapping(IInterfaceInstanceMapping newInterfaceInstanceMapping)
ISubArchitecture
addInterfaceInstanceMapping in interface ISubArchitecturenewInterfaceInstanceMapping - interfaceInstanceMapping to add.public void addInterfaceInstanceMappings(Collection interfaceInstanceMappings)
ISubArchitecture
addInterfaceInstanceMappings in interface ISubArchitectureinterfaceInstanceMappings - interfaceInstanceMappings to add.public void clearInterfaceInstanceMappings()
ISubArchitecture
clearInterfaceInstanceMappings in interface ISubArchitecturepublic void removeInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToRemove)
ISubArchitectureisEquivalent(...) function.
removeInterfaceInstanceMapping in interface ISubArchitectureinterfaceInstanceMappingToRemove - interfaceInstanceMapping to remove.public void removeInterfaceInstanceMappings(Collection interfaceInstanceMappings)
ISubArchitectureisEquivalent(...) function.
removeInterfaceInstanceMappings in interface ISubArchitectureinterfaceInstanceMappings - interfaceInstanceMapping to remove.public Collection getAllInterfaceInstanceMappings()
ISubArchitecture
getAllInterfaceInstanceMappings in interface ISubArchitecturepublic boolean hasInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToCheck)
ISubArchitecture
hasInterfaceInstanceMapping in interface ISubArchitecturetrue if this SubArchitecture contains the given
interfaceInstanceMappingToCheck, false otherwise.public Collection hasInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
ISubArchitecture
hasInterfaceInstanceMappings in interface ISubArchitectureinterfaceInstanceMappingsToCheck - interfaceInstanceMappings to check for.
java.lang.Boolean. If the ith
element in interfaceInstanceMappings 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 hasAllInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
ISubArchitecture
hasAllInterfaceInstanceMappings in interface ISubArchitectureinterfaceInstanceMappingsToCheck - interfaceInstanceMappings to check for.
true if every element in
interfaceInstanceMappings is found in this SubArchitecture,
false otherwise.public IInterfaceInstanceMapping getInterfaceInstanceMapping(String id)
ISubArchitecture
getInterfaceInstanceMapping in interface ISubArchitectureid - ID to look for.
null if not found.public Collection getInterfaceInstanceMappings(Collection ids)
ISubArchitecture
getInterfaceInstanceMappings in interface ISubArchitectureids - ID to look for.
public boolean isEquivalent(ISubArchitecture c)
ISubArchitecture
isEquivalent in interface ISubArchitecturec - SubArchitecture to compare to this one.
true if all the child elements of this
SubArchitecture 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 | |||||||||