|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.simulation.Atlas
A simulation environment configuration object that contains descriptors of content.
AtlasEvent,
AtlasListener,
List,
Marshal,
NodeList,
Document,
Element| Constructor Summary | |
Atlas()
Construct a new empty atlas |
|
Atlas(org.w3c.dom.Document document)
Construct an atlas initialized from the argument xml document |
|
| Method Summary | |
void |
addAtlasListener(AtlasListener al)
Add a listener to this atlas |
void |
addElement(org.w3c.dom.Element e)
Add the argument Element to the atlas document, firing
an AtlasEvent as necessary. |
protected void |
fireAtlasEvent(int id,
org.w3c.dom.Element arg)
Deliver events to the listeners |
static boolean |
getDisplayStatus(org.w3c.dom.Element e)
Return the display status of the argument element |
org.w3c.dom.Document |
getDocument()
Return the atlas document. |
org.w3c.dom.Element |
getElementByAttribute(java.lang.String elementName,
java.lang.String attrName,
java.lang.String attrValue)
Return the first instance of an atlas Element with the argument
tag name and matching attribute name and value. |
org.w3c.dom.NodeList |
getElements(java.lang.String elementName)
Return the NodeList of atlas Elements with the
argument tag name. |
java.util.List |
getElementsByAttribute(java.lang.String elementName,
java.lang.String attrName,
java.lang.String attrValue)
Return the list of atlas Elements with the argument tag name
and matching attribute name and value. |
boolean |
getLoadStatus()
Return the load status |
Marshal |
getMarshaler()
Return the Marshal object associated with this atlas |
java.lang.String |
getName()
Return the atlas name |
java.lang.Class |
getOwner()
Return the identifier of the owner of this atlas |
org.w3c.dom.Element |
importElement(org.w3c.dom.Element e)
Return the Element cooresponding to the argument, that has been
'imported' into the atlas's document. |
boolean |
isModified()
Return a flag indicating if this atlas has been modified from it's original state. |
boolean |
isOwned()
Return a flag indicating that this atlas is owned (locked) |
void |
removeAtlasListener(AtlasListener al)
Remove a listener from this atlas |
void |
removeElement(org.w3c.dom.Element e)
Remove the argument Element from the atlas document, firing
an AtlasEvent as necessary. |
void |
setDisplayStatus(org.w3c.dom.Element e,
boolean status)
Set the display status attribute of the argument element |
void |
setLoadStatus(boolean value)
Set the load status |
void |
setName(java.lang.String value)
Set the atlas name |
void |
setOwner(java.lang.Class value)
Set the identifier of the owner of this atlas |
static void |
setState(java.lang.String attr,
org.w3c.dom.Element e,
boolean state)
Set the specified attribute of the argument element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Atlas()
public Atlas(org.w3c.dom.Document document)
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String value)
value - the new atlas namepublic boolean getLoadStatus()
public void setLoadStatus(boolean value)
value - the new load statuspublic java.lang.Class getOwner()
public void setOwner(java.lang.Class value)
value - the identifier of the owner of this atlaspublic boolean isOwned()
true if this atlas is currently owned
(locked), false otherwise.public Marshal getMarshaler()
Marshal object associated with this atlas
Marshal object associated with this atlaspublic boolean isModified()
true if the atlas content, identification or state
variables have changed, false otherwise.
public org.w3c.dom.NodeList getElements(java.lang.String elementName)
NodeList of atlas Elements with the
argument tag name.
elementName - the tag name of the Elements to return
Elements matching the tag name
public java.util.List getElementsByAttribute(java.lang.String elementName,
java.lang.String attrName,
java.lang.String attrValue)
Elements with the argument tag name
and matching attribute name and value.
elementName - the tag name of the Elements to returnattrName - the attribute name to matchattrValue - the attribute value to match
Elements
public org.w3c.dom.Element getElementByAttribute(java.lang.String elementName,
java.lang.String attrName,
java.lang.String attrValue)
Element with the argument
tag name and matching attribute name and value.
elementName - the tag name of the Element to returnattrName - the attribute name to matchattrValue - the attribute value to match
Elementpublic org.w3c.dom.Element importElement(org.w3c.dom.Element e)
Element cooresponding to the argument, that has been
'imported' into the atlas's document. Note: This is a deep copy of the
argument that has NOT been added to the atlas.
e - the argument Element
Elementpublic void addElement(org.w3c.dom.Element e)
Element to the atlas document, firing
an AtlasEvent as necessary.
e - the argument Elementpublic void removeElement(org.w3c.dom.Element e)
Element from the atlas document, firing
an AtlasEvent as necessary.
e - the argument Elementpublic void addAtlasListener(AtlasListener al)
al - the AtlasListenerpublic void removeAtlasListener(AtlasListener al)
al - the AtlasListener
protected void fireAtlasEvent(int id,
org.w3c.dom.Element arg)
id - the AtlasEvent idarg - the atlas Element that is the subject of the eventpublic org.w3c.dom.Document getDocument()
public void setDisplayStatus(org.w3c.dom.Element e,
boolean status)
e - the argument Element to set the display status ofstatus - the statuspublic static boolean getDisplayStatus(org.w3c.dom.Element e)
e - the argument Element to get the display status of
public static void setState(java.lang.String attr,
org.w3c.dom.Element e,
boolean state)
attr - the attribute namee - the argument Element to set the state ofstate - the state
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||