wxtpages
Class unitRSSContent

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bywxtpages.unit
          extended bywxtpages.unitRSSContent
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class unitRSSContent
extends unit

This class handles RSS-feeds, RSS 2.0. Instances of unitRSSContent are treated as unitContent instances as seen from page and group.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class wxtpages.unit
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
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
unitRSSContent(unitGroup master, org.w3c.dom.Element elt, unit owner)
          Creates a new instance of unitRSSContent
 
Method Summary
protected  boolean establishDom()
          Establish the dom as a combination of old version and new version
 java.net.URI getFeedUri()
           
protected  boolean isSame(org.w3c.dom.Element oldE, org.w3c.dom.Element newE)
          Compare two Elements of type Item
 void prepare(unit p, java.lang.String theCommonName, java.lang.String theCommonValue)
          Prepare this unitContent with imports from non-content files.
 
Methods inherited from class wxtpages.unit
addTransformationParameters, browseUnit, build, calculateAbsoluteAddress, correctAllAddressing, correctOneCommonLink, correctStyleAttributes, correctStyleElements, correctStyleString, displayProperties, editUnit, getAbsoluteUri, getAbsoluteUriAsString, getAsText, getDescription, getDoc, getDocCopy, getEncoding, getFileName, getName, getOption, getOptions, getOriginalAsString, getOriginalUri, getProperties, getTransformation, getTransformationAsString, getTransformationID, getTransformationParameterMap, getType, getURItoAsString, isSameAs, isUpdatedAfterUse, killDocument, loadAsText, makeComment, makeImageRefToPage, makeRefToPage, saveFromDOM, setEncoding, setNowAsLastTimeUsed, setTransformationId, setUpPopMenu, toString
 
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

unitRSSContent

public unitRSSContent(unitGroup master,
                      org.w3c.dom.Element elt,
                      unit owner)
               throws java.lang.Exception
Creates a new instance of unitRSSContent

Parameters:
master - The unitGroup that owns this unitRSSContent object
elt - The element in the script that describes this unitRSSContent
owner - The unitPage that owns this unitRSSContent
Throws:
java.lang.Exception - when we cannot establish this unitRSSContent
Method Detail

establishDom

protected boolean establishDom()
Establish the dom as a combination of old version and new version

Overrides:
establishDom in class unit
Returns:
true if we can establish the DOM, false otherwise

isSame

protected boolean isSame(org.w3c.dom.Element oldE,
                         org.w3c.dom.Element newE)
Compare two Elements of type Item

Parameters:
oldE - An element of type Item
newE - An element of type Item
Returns:
true if same link, false otherwise

prepare

public void prepare(unit p,
                    java.lang.String theCommonName,
                    java.lang.String theCommonValue)
Prepare this unitContent with imports from non-content files. Does necessary address calculations. Calls supers (unit) prepare

Overrides:
prepare in class unit
Parameters:
p - The unit that will use this unit as content, may not be null
theCommonName - The name used for common resources in the material
theCommonValue - The value that we will use

getFeedUri

public java.net.URI getFeedUri()