org.apache.lenya.modules.news
Class NewsWrapper
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.modules.collection.CollectionWrapper
org.apache.lenya.modules.news.NewsWrapper
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.modules.collection.Collection
public class NewsWrapper
- extends org.apache.lenya.modules.collection.CollectionWrapper
Wrapper for a news document.
Fields inherited from class org.apache.lenya.modules.collection.CollectionWrapper |
TYPES |
Fields inherited from interface org.apache.lenya.modules.collection.Collection |
ATTRIBUTE_HREF, ATTRIBUTE_TYPE, ATTRIBUTE_UUID, DEFAULT_PREFIX, ELEMENT_COLLECTION, ELEMENT_DOCUMENT, NAMESPACE, TYPE_CHILDREN, TYPE_LINK, TYPE_MANUAL |
Constructor Summary |
NewsWrapper(org.apache.lenya.cms.publication.Document doc,
org.apache.avalon.framework.logger.Logger logger)
|
Methods inherited from class org.apache.lenya.modules.collection.CollectionWrapper |
add, add, clear, contains, createDocumentElement, documents, getDelegate, getDocuments, getFirstPosition, getHref, getNamespaceHelper, getType, load, loadDocument, remove, save, setHref, setType, size |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INCLUDE_ITEMS
protected static final int DEFAULT_INCLUDE_ITEMS
- See Also:
- Constant Field Values
ATTRIBUTE_INCLUDE_ITEMS
protected static final java.lang.String ATTRIBUTE_INCLUDE_ITEMS
- See Also:
- Constant Field Values
NewsWrapper
public NewsWrapper(org.apache.lenya.cms.publication.Document doc,
org.apache.avalon.framework.logger.Logger logger)
- Parameters:
doc
- The document to wrap.logger
- The logger.
loadXml
protected void loadXml(org.apache.lenya.xml.NamespaceHelper helper)
- Overrides:
loadXml
in class org.apache.lenya.modules.collection.CollectionWrapper
saveXml
protected void saveXml(org.apache.lenya.xml.NamespaceHelper helper)
throws javax.xml.transform.TransformerException,
org.apache.lenya.cms.publication.DocumentException
- Overrides:
saveXml
in class org.apache.lenya.modules.collection.CollectionWrapper
- Throws:
javax.xml.transform.TransformerException
org.apache.lenya.cms.publication.DocumentException
getIncludeItemNumber
public short getIncludeItemNumber()
- Returns:
- The number of items to appear on overviews which are generated
using the "include" format.
setIncludeItemNumber
public void setIncludeItemNumber(short number)
- Parameters:
number
- The number of items to appear on overviews which are
generated using the "include" format.
initializeNamespaceHelper
protected org.apache.lenya.xml.NamespaceHelper initializeNamespaceHelper()
- Overrides:
initializeNamespaceHelper
in class org.apache.lenya.modules.collection.CollectionWrapper
Copyright © $ Apache Software Foundation. All Rights Reserved.