org.kuali.rice.kew.routeheader
Class StandardDocumentContent

java.lang.Object
  extended by org.kuali.rice.kew.routeheader.StandardDocumentContent
All Implemented Interfaces:
Serializable, DocumentContent
Direct Known Subclasses:
AttributeDocumentContent

public class StandardDocumentContent
extends Object
implements DocumentContent, Serializable

Standard implementation of DocumentContent which nows hows to parse a String that it's constructed with into content with the application, attribute, and searchable content sections.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
private  Element applicationContent
           
private  Element attributeContent
           
private  String docContent
           
private  Document document
           
private static String LEGACY_FLEXDOC_ELEMENT
           
private  RouteContext routeContext
           
private  Element searchableContent
           
private static long serialVersionUID
           
 
Constructor Summary
StandardDocumentContent(String docContent)
           
StandardDocumentContent(String docContent, RouteContext routeContext)
           
 
Method Summary
private  void extractElements(Document document)
           
 Element getApplicationContent()
           
 Element getAttributeContent()
           
 String getDocContent()
           
 Document getDocument()
           
 RouteContext getRouteContext()
           
 Element getSearchableContent()
           
private  void initialize(String docContent, RouteContext routeContext)
           
private  Document parseDocContent(String docContent)
           
private  void readObject(ObjectInputStream ais)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LEGACY_FLEXDOC_ELEMENT

private static final String LEGACY_FLEXDOC_ELEMENT
See Also:
Constant Field Values

docContent

private String docContent

document

private transient Document document

applicationContent

private transient Element applicationContent

attributeContent

private transient Element attributeContent

searchableContent

private transient Element searchableContent

routeContext

private RouteContext routeContext
Constructor Detail

StandardDocumentContent

public StandardDocumentContent(String docContent)
                        throws InvalidXmlException
Throws:
InvalidXmlException

StandardDocumentContent

public StandardDocumentContent(String docContent,
                               RouteContext routeContext)
                        throws InvalidXmlException
Throws:
InvalidXmlException
Method Detail

initialize

private void initialize(String docContent,
                        RouteContext routeContext)
                 throws InvalidXmlException
Throws:
InvalidXmlException

parseDocContent

private Document parseDocContent(String docContent)
                          throws IOException,
                                 SAXException,
                                 ParserConfigurationException
Throws:
IOException
SAXException
ParserConfigurationException

extractElements

private void extractElements(Document document)

getApplicationContent

public Element getApplicationContent()
Specified by:
getApplicationContent in interface DocumentContent

getAttributeContent

public Element getAttributeContent()
Specified by:
getAttributeContent in interface DocumentContent

getDocContent

public String getDocContent()
Specified by:
getDocContent in interface DocumentContent

getDocument

public Document getDocument()
Specified by:
getDocument in interface DocumentContent

getSearchableContent

public Element getSearchableContent()
Specified by:
getSearchableContent in interface DocumentContent

getRouteContext

public RouteContext getRouteContext()
Specified by:
getRouteContext in interface DocumentContent

readObject

private void readObject(ObjectInputStream ais)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.