com.unitesk.requality.nodetypes
Class Document
java.lang.Object
com.unitesk.requality.core.TreeNode
com.unitesk.requality.nodetypes.Document
public class Document
- extends TreeNode
Field Summary |
static java.lang.String |
TYPE_NAME
|
Methods inherited from class com.unitesk.requality.core.TreeNode |
addBaseNode, canAddCopyOf, canBeChildOf, canBeCopiedTo, canBeDeleted, canBeParentOf, canBeParentOf, createChild, createChild, createCopyIn, delete, deleteResource, equals, findChild, getAttribute, getAttributeKeys, getAttributes, getAttributeValue, getAttributeValue, getBaseNodes, getBooleanAttributeValue, getBooleanAttributeValue, getChild, getChildrenUUIds, getDescription, getDescription, getFloatAttributeValue, getFloatAttributeValue, getId, getIndex, getIntAttributeValue, getIntAttributeValue, getListAttributeValue, getParent, getParentUUId, getPossibleChildTypes, getPossibleParentTypes, getPredicate, getQualifiedId, getResourceContent, getResourcesPath, getSortedChildren, getSortedChildren, getSortedChildren, getStringAttributeValue, getStringAttributeValue, getTreeDB, getType, getUserFriendlyName, getUUId, isDisposed, isResourceExists, isValidFileName, isValidId, isValidId, isValidId, processResourcesPath, putAttribute, removeAttribute, removeBaseNode, removeChild, saveAttributes, setDescription, setDisposed, setId, setIndex, setPredicate, setResourceContent, setResourceContent, setType, sizeChildren, toNodeDesc, toNodeDesc, updateTreeNodes |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
Document
public Document()
Document
public Document(TreeDB db,
java.util.UUID uuid)
setMetaCharset
public void setMetaCharset(java.lang.String charset)
getMetaCharset
public java.lang.String getMetaCharset()
getTypeRootQId
public static java.lang.String getTypeRootQId()
setResourceName
public void setResourceName(java.lang.String name)
setParent
public void setParent(TreeNode parent)
- Overrides:
setParent
in class TreeNode
getResourceName
public java.lang.String getResourceName()
getHTMLPath
public java.lang.String getHTMLPath()
getLocationNodes
public java.util.List<Location> getLocationNodes()
getLocations
public java.util.List<java.util.UUID> getLocations()
removeLocation
public java.lang.String removeLocation(java.lang.String uuid)
createLocation
public Location createLocation()
saveDOM
public void saveDOM()
saveDOM
public void saveDOM(java.lang.String jsData)
getLocation
public Location getLocation(java.lang.String locationId)
getDOM
public org.w3c.dom.Document getDOM()
throws java.lang.Exception
- Throws:
java.lang.Exception
loadDOM
public org.w3c.dom.Document loadDOM()
throws java.lang.Exception
- Throws:
java.lang.Exception
extractLocationText
public java.lang.String extractLocationText(java.lang.String locUUID)
sizeLocations
public int sizeLocations()
toString
public java.lang.String toString()
- Overrides:
toString
in class TreeNode
resetCache
public void resetCache()
getXmlDoc
protected org.w3c.dom.Document getXmlDoc()
setXmlDoc
protected void setXmlDoc(org.w3c.dom.Document xmlDoc)
createLocationRangesDescriptor
public java.lang.String createLocationRangesDescriptor(java.lang.String locId)
getElementXpath
public static java.lang.String getElementXpath(org.w3c.dom.Element elt)
getElementIdx
public static int getElementIdx(org.w3c.dom.Element elt)
possibleParents
protected java.util.List<java.lang.String> possibleParents()
- Overrides:
possibleParents
in class TreeNode
isCopyable
public boolean isCopyable()
- Overrides:
isCopyable
in class TreeNode
possibleChildren
protected java.util.List<java.lang.String> possibleChildren()
- Overrides:
possibleChildren
in class TreeNode