|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.MerlotDOMNode
org.merlotxml.merlot.MerlotDOMElement
DOM element container for Merlot. Contains a DOM node, handles getting an icon for a particular node, getting the editor for a node, etc. Also implements transferable so that the node can be drag and dropped, or cut and pasted.
Field Summary | |
boolean |
_hasBeenValidated
|
Fields inherited from class org.merlotxml.merlot.MerlotDOMNode |
_children, _clonedFrom, _dtdPluginConfig, _file, _listeners, _parent, _theNode, DOM_TREENODE_FLAVOR |
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Constructor Summary | |
MerlotDOMElement(org.w3c.dom.Element data,
XMLFile doc)
|
Method Summary | |
java.lang.String |
getAttribute(java.lang.String s)
|
DTDAttribute |
getDTDAttribute(java.lang.String name)
Deprecated. Use GrammarComplexType.getAttribute(name) |
DTDElement |
getDTDElement()
Deprecated. Use MerlotDOMNode.getGrammarComplexType. |
java.lang.String |
getElementName()
Returns the DTD name of the element (which we consider it's type) in the context of merlot |
boolean |
getHasBeenValidated()
|
boolean |
getIsComplete()
|
boolean |
getIsContentValid()
|
boolean |
getIsEachChildValid()
|
boolean |
getIsLocationValid()
|
int |
getNumberOfPeersOfSameType()
|
boolean |
isElement()
Element nodes should overload this to return true. |
boolean |
isValid()
|
boolean |
mayBeRemoved()
Determines if the minimum allowed instances of this element will be violated if it is cut or deleted. |
void |
refreshNodeInTree()
|
void |
resetValidation()
Called from MerlotDOMNode.fireNodeInserted to update. |
void |
resetValidationOfChildren()
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
sets the attributes one at a time |
void |
setAttributes(java.util.HashMap h)
Sets the attributes according the given hashtable. |
void |
validate()
Adds element to queue in ValidationThread. |
void |
validateNow()
Called from ValidationThread |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean _hasBeenValidated
Constructor Detail |
public MerlotDOMElement(org.w3c.dom.Element data, XMLFile doc)
Method Detail |
public boolean isElement()
MerlotDOMNode
isElement
in class MerlotDOMNode
public java.lang.String getElementName()
public java.lang.String getAttribute(java.lang.String s)
public void setAttributes(java.util.HashMap h)
setAttributes
in class MerlotDOMNode
public void setAttribute(java.lang.String name, java.lang.String value)
public boolean isValid()
isValid
in class MerlotDOMNode
public boolean getHasBeenValidated()
public boolean getIsLocationValid()
public boolean getIsComplete()
public boolean getIsContentValid()
public boolean getIsEachChildValid()
public void validate()
public void validateNow()
public boolean mayBeRemoved()
mayBeRemoved
in class MerlotDOMNode
public int getNumberOfPeersOfSameType()
public void resetValidation()
public void resetValidationOfChildren()
public void refreshNodeInTree()
public DTDElement getDTDElement()
public DTDAttribute getDTDAttribute(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |