|
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.XArchImpl
DOM-Based implementation of the IXArch interface.
| Field Summary | |
protected Element |
elt
|
protected HashMap |
wrapperCache
|
protected Vector |
xArchListeners
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.IXArch |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
XArchImpl(Document doc)
|
|
| Method Summary | |
void |
addObject(Object object)
Add an object to this xArch object. |
void |
addObjects(Collection objects)
Add a set of objects to this xArch object. |
void |
addSchemaLocation(String uri,
String location)
Add a schemaLocation mapping to the xArch element. |
void |
addXArchListener(XArchListener l)
Adds an object that will listen to XArchEvents
to this xArch object. |
void |
cacheWrapper(Node domNode,
IXArchElement wrapper)
|
void |
clearObjects()
Remove all objects from this xArch object. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
void |
fireXArchEvent(XArchEvent evt)
Broadcasts a given event to all the XArchListeners on this xArch object. |
Collection |
getAllObjects()
Get all the objects from this xArch object. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArchElement |
getWrapper(Node domNode)
|
IXArch |
getXArch()
|
boolean |
hasAllObjects(Collection objects)
Determine if this xArch object contains a given set of objects. |
int |
hashCode()
|
boolean |
hasObject(Object object)
Determine if this xArch object contains a given object. |
Collection |
hasObjects(Collection objects)
Determine if this xArch object contains a given set of objects. |
boolean |
isEquivalent(IXArch objectCollection)
Determine if this xArch object is equivalent to another one. |
void |
removeObject(Object object)
Remove a given object from this xArch object. |
void |
removeObjects(Collection objects)
Remove a set of objects from this xArch object. |
void |
removeSchemaLocation(String uri)
Removes a schemaLocation mapping from the xArch element. |
void |
removeXArchListener(XArchListener l)
Removes an object that will listen to XArchEvents
from this xArch object. |
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 Element elt
protected Vector xArchListeners
protected HashMap wrapperCache
| Constructor Detail |
public XArchImpl(Document doc)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public boolean equals(Object o)
public int hashCode()
public IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic void addObject(Object object)
IXArch
addObject in interface IXArchobject - Object to add.public void addObjects(Collection objects)
IXArch
addObjects in interface IXArchobjects - Objects to add.public void clearObjects()
IXArch
clearObjects in interface IXArchpublic void removeObject(Object object)
IXArch
removeObject in interface IXArchobject - Object to remove.public void removeObjects(Collection objects)
IXArch
removeObjects in interface IXArchobjects - Objects to remove.public Collection getAllObjects()
IXArch
getAllObjects in interface IXArchpublic boolean hasObject(Object object)
IXArch
hasObject in interface IXArchobject - Object to check for.
true if the object was found,
false otherwise.public Collection hasObjects(Collection objects)
IXArch
hasObjects in interface IXArchobjects - Objects to check for.
java.lang.Boolean
that are true if the object was found,
false otherwise.public boolean hasAllObjects(Collection objects)
IXArch
hasAllObjects in interface IXArchobjects - Objects to check for.
true if all the objects were found,
false otherwise.public boolean isEquivalent(IXArch objectCollection)
IXArch
isEquivalent in interface IXArchobjectCollection - Other xArch object to compare to this one.
true if both contain the same
objects, false otherwise.public void addXArchListener(XArchListener l)
IXArchXArchEvents
to this xArch object.
addXArchListener in interface IXArchl - Listener to add.public void removeXArchListener(XArchListener l)
IXArchXArchEvents
from this xArch object.
removeXArchListener in interface IXArchl - Listener to add.public void fireXArchEvent(XArchEvent evt)
IXArch
fireXArchEvent in interface IXArchevt - Event to broadcast
public void addSchemaLocation(String uri,
String location)
IXArch
addSchemaLocation in interface IXArchuri - Schema URI to add.location - Location of the schema. May be local or a URL.public void removeSchemaLocation(String uri)
IXArch
removeSchemaLocation in interface IXArchuri - Schema URI to remove.public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElement
public void cacheWrapper(Node domNode,
IXArchElement wrapper)
cacheWrapper in interface IXArchpublic IXArchElement getWrapper(Node domNode)
getWrapper in interface IXArch
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||