|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
wxtpages.unit
wxtpages.unitTextContent
Instances of unitTextContent handles import and preparation of formatted or non-formatted text. The source file need not be formatted. The extract may be interpreted as strait text (a textnode) or as acontent of a documentfragment.
Field Summary |
Fields inherited from class wxtpages.unit |
CONTENT_TYPE, DBCONTENT_TYPE, GROUP_TYPE, m_absoluteUri, m_description, m_Doc, m_GroupMaster, m_lastTimeUsed, m_myElement, m_name, m_optionMap, m_originalUri, m_parameterMap, m_propertyMap, m_txtContent, m_type, PAGE_TYPE, TEMPLATE_TYPE, TEXTCONTENT_TYPE, TRANSFORMATION_TYPE, UNIT_TYPE |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
unitTextContent(unitGroup master,
org.w3c.dom.Element elt,
unit owner)
Creates a new instance of unitTextContent from script. |
|
unitTextContent(unitGroup master,
java.lang.String loc,
unit owner)
Creates a new instance of unitTextContent based on an importcommand (PI) |
Method Summary | |
protected java.lang.String |
getExtractedText()
Get the text extracted from between left parenthesis and right parenthesis. |
protected java.lang.String |
getExtractedText(java.lang.String left,
java.lang.String right)
Get the text we can extract based on parameters as parenthesis |
org.w3c.dom.NodeList |
getNodeList(command cmd)
Get a list of nodes according to the xpath specifyed in cmd |
boolean |
prepare(unit p,
java.lang.String theCommonName,
java.lang.String theCommonValue)
Prepare the text in this textunit Does nothing at the moment. |
protected java.lang.String |
wash(java.lang.String type,
java.lang.String txt)
Preserve special characters as std entities |
protected java.lang.String |
wrapEntities(java.lang.String entities,
java.lang.String txt)
wrap up as entities |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public unitTextContent(unitGroup master, org.w3c.dom.Element elt, unit owner) throws java.lang.Exception
master
- The unitGroup object that owns this content objectelt
- The element in the script that defines this unitContent objectowner
- The unit that owns this unitContent, a unitPage-object
java.lang.Exception
- When the object cannot be establishedpublic unitTextContent(unitGroup master, java.lang.String loc, unit owner) throws java.lang.Exception
master
- The unitGroup object that owns this content objectloc
- Where the unitContent object is storedowner
- The unit that owns this unitContent, normally a unitPage-object
java.lang.Exception
- When the object cannot be establishedMethod Detail |
public org.w3c.dom.NodeList getNodeList(command cmd)
getNodeList
in class unit
cmd
- the command that controls the listproduction
public boolean prepare(unit p, java.lang.String theCommonName, java.lang.String theCommonValue)
prepare
in class unit
p
- The unit that will own the content, may not be nulltheCommonName
- The name of commonstheCommonValue
- The value of commons
protected java.lang.String getExtractedText()
protected java.lang.String getExtractedText(java.lang.String left, java.lang.String right)
left
- Temporary left parenthesisright
- Temporary right parenthesis
protected java.lang.String wash(java.lang.String type, java.lang.String txt)
type
- the wash we want, only code is implementedprotected java.lang.String wrapEntities(java.lang.String entities, java.lang.String txt)
entities
- a commaseparated list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |