UIX 2.2.16

oracle.cabo.style.xml
Class StyleSheetDocumentUtils

java.lang.Object
  |
  +--oracle.cabo.style.xml.StyleSheetDocumentUtils

public class StyleSheetDocumentUtils
extends java.lang.Object

Utility class for parsing an XSS document into a StyleSheetDocument.


Constructor Summary
StyleSheetDocumentUtils()
           
 
Method Summary
static StyleSheetDocument createStyleSheetDocument(StyleContext context, XMLProvider provider, org.xml.sax.InputSource source)
          Creates a StyleSheetDocument from the specified InputSource
static StyleSheetDocument createStyleSheetDocument(StyleContext context, XMLProvider xmlProvider, NameResolver resolver, java.lang.String sourceName)
          Creates a StyleSheetDocument from the specified InputSource
static StyleSheetDocument mergeStyleSheetDocuments(StyleSheetDocument document1, StyleSheetDocument document2)
          Merges two StyleSheetDocuments to produce a new StyleSheetDocuments which combines styles from both documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSheetDocumentUtils

public StyleSheetDocumentUtils()
Method Detail

createStyleSheetDocument

public static StyleSheetDocument createStyleSheetDocument(StyleContext context,
                                                          XMLProvider provider,
                                                          org.xml.sax.InputSource source)
                                                   throws java.io.IOException,
                                                          org.xml.sax.SAXException
Creates a StyleSheetDocument from the specified InputSource
Parameters:
context - The StyleContext
xmlProvider - The XMLProvider to use to parse the source document
source - The InputSource for the source document. The system id of the InputSource must be the file system path of the source document.

createStyleSheetDocument

public static StyleSheetDocument createStyleSheetDocument(StyleContext context,
                                                          XMLProvider xmlProvider,
                                                          NameResolver resolver,
                                                          java.lang.String sourceName)
                                                   throws java.io.IOException,
                                                          org.xml.sax.SAXException
Creates a StyleSheetDocument from the specified InputSource
Parameters:
context - The StyleContext
xmlProvider - The XMLProvider to use to parse the source document
resolver - The NameResolver to use to locate the source document. This must be a non-null instance.
sourceName - The name of the source XSS document. This value must resolve to a valid document via the provided NameResolver.

mergeStyleSheetDocuments

public static StyleSheetDocument mergeStyleSheetDocuments(StyleSheetDocument document1,
                                                          StyleSheetDocument document2)
Merges two StyleSheetDocuments to produce a new StyleSheetDocuments which combines styles from both documents. If styles appear in both documents, the style properties in the second StyleSheetDocument take precedence.
Parameters:
document1 - The base StyleSheetDocument
document2 - A second StyleSheetDocument which overrides properties from the base StyleSheetDocument.

UIX 2.2.16