org.kuali.rice.kew.xml
Class StyleXmlParser

java.lang.Object
  extended by org.kuali.rice.kew.xml.StyleXmlParser

public class StyleXmlParser
extends Object

Parser for Style content type, managed by StyleService

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static ThreadLocal DOCUMENT_BUILDER
           
private static org.apache.log4j.Logger LOG
           
 
Constructor Summary
StyleXmlParser()
           
 
Method Summary
private static WorkflowServiceErrorException generateException(String error, Throwable cause)
           
private static WorkflowServiceErrorException generateMissingAttribException(String element, String attrib)
           
private static WorkflowServiceErrorException generateMissingChildException(String element, String child)
           
private static WorkflowServiceErrorException generateSerializationException(String element, TransformerException cause)
           
private static DocumentBuilder getDocumentBuilder()
          Returns a valid DocumentBuilder
static void loadXml(StyleService styleService, InputStream inputStream, String principalId)
           
private static EDocLiteStyle parseStyle(Element e)
          Parses an EDocLiteStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

DOCUMENT_BUILDER

private static ThreadLocal DOCUMENT_BUILDER
Constructor Detail

StyleXmlParser

public StyleXmlParser()
Method Detail

getDocumentBuilder

private static DocumentBuilder getDocumentBuilder()
Returns a valid DocumentBuilder

Returns:
a valid DocumentBuilder

loadXml

public static void loadXml(StyleService styleService,
                           InputStream inputStream,
                           String principalId)

generateException

private static WorkflowServiceErrorException generateException(String error,
                                                               Throwable cause)

parseStyle

private static EDocLiteStyle parseStyle(Element e)
Parses an EDocLiteStyle

Parameters:
e - element to parse
Returns:
an EDocLiteStyle

generateMissingAttribException

private static WorkflowServiceErrorException generateMissingAttribException(String element,
                                                                            String attrib)

generateMissingChildException

private static WorkflowServiceErrorException generateMissingChildException(String element,
                                                                           String child)

generateSerializationException

private static WorkflowServiceErrorException generateSerializationException(String element,
                                                                            TransformerException cause)


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