com.unitesk.requality.nodetypes
Class Document

java.lang.Object
  extended by com.unitesk.requality.core.TreeNode
      extended by com.unitesk.requality.nodetypes.Document

public class Document
extends TreeNode


Nested Class Summary
static class Document.LocationRegion
           
 
Field Summary
static java.lang.String TYPE_NAME
           
 
Fields inherited from class com.unitesk.requality.core.TreeNode
ATTR_BASE_NODES, ATTR_DESCRIPTION, ATTR_NAME, ATTR_PREDICATE, ATTR_TYPE, id, index
 
Constructor Summary
Document()
           
Document(TreeDB db, java.util.UUID uuid)
           
 
Method Summary
 Location createLocation()
           
 java.lang.String createLocationRangesDescriptor(java.lang.String locId)
           
 java.lang.String extractLocationText(java.lang.String locUUID)
           
 org.w3c.dom.Document getDOM()
           
static int getElementIdx(org.w3c.dom.Element elt)
           
static java.lang.String getElementXpath(org.w3c.dom.Element elt)
           
 java.lang.String getHTMLPath()
           
 Location getLocation(java.lang.String locationId)
           
 java.util.List<Location> getLocationNodes()
           
 java.util.List<java.util.UUID> getLocations()
           
 java.lang.String getMetaCharset()
           
 java.lang.String getResourceName()
           
static java.lang.String getTypeRootQId()
           
protected  org.w3c.dom.Document getXmlDoc()
           
 boolean isCopyable()
           
 org.w3c.dom.Document loadDOM()
           
protected  java.util.List<java.lang.String> possibleChildren()
           
protected  java.util.List<java.lang.String> possibleParents()
           
 java.lang.String removeLocation(java.lang.String uuid)
           
 void resetCache()
           
 void saveDOM()
           
 void saveDOM(java.lang.String jsData)
           
 void setMetaCharset(java.lang.String charset)
           
 void setParent(TreeNode parent)
           
 void setResourceName(java.lang.String name)
           
protected  void setXmlDoc(org.w3c.dom.Document xmlDoc)
           
 int sizeLocations()
           
 java.lang.String toString()
           
 
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
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

Document

public Document()

Document

public Document(TreeDB db,
                java.util.UUID uuid)
Method Detail

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