org.kuali.rice.kew.routeheader
Class StandardDocumentContent
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
StandardDocumentContent
public StandardDocumentContent(String docContent)
throws InvalidXmlException
- Throws:
InvalidXmlException
StandardDocumentContent
public StandardDocumentContent(String docContent,
RouteContext routeContext)
throws InvalidXmlException
- Throws:
InvalidXmlException
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.