org.jboss.portal.cms
Class ContentNode

java.lang.Object
  extended by org.jboss.portal.cms.Node
      extended by org.jboss.portal.cms.ContentNode

public class ContentNode
extends Node

A node that carries some content.


Field Summary
protected  byte[] contentBytes
           
protected  java.lang.String contentType
           
 
Fields inherited from class org.jboss.portal.cms.Node
name, nat, objectNode, token
 
Constructor Summary
ContentNode(org.apache.slide.common.NamespaceAccessToken nat, org.apache.slide.common.SlideToken token, org.apache.slide.structure.ObjectNode objectNode)
           
 
Method Summary
 byte[] getContent()
           
 java.lang.String getContentType()
           
 boolean isDirectory()
           
 
Methods inherited from class org.jboss.portal.cms.Node
create, create, getName, getURI, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contentType

protected java.lang.String contentType

contentBytes

protected byte[] contentBytes
Constructor Detail

ContentNode

public ContentNode(org.apache.slide.common.NamespaceAccessToken nat,
                   org.apache.slide.common.SlideToken token,
                   org.apache.slide.structure.ObjectNode objectNode)
Method Detail

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in class Node

getContentType

public java.lang.String getContentType()
                                throws CMSException
Throws:
CMSException

getContent

public byte[] getContent()
                  throws CMSException
Throws:
CMSException