UIX 2.2.16

oracle.cabo.style.xml.parse
Class StyleSheetDocument

java.lang.Object
  |
  +--oracle.cabo.style.xml.parse.StyleSheetDocument

public class StyleSheetDocument
extends java.lang.Object

Private implementation of StyleSheetDocument.


Field Summary
static long UNKNOWN_TIMESTAMP
          Value used to indicate that the document timestamp is not know.
 
Constructor Summary
StyleSheetDocument(StyleSheetNode[] styleSheets, ColorSchemeNode[] colorSchemes)
          Deprecated. colorScheme elements are no longer supported
StyleSheetDocument(StyleSheetNode[] styleSheets, ColorSchemeNode[] colorSchemes, java.lang.String documentVersion)
          Deprecated. colorScheme elements are no longer supported
StyleSheetDocument(StyleSheetNode[] styleSheets, java.lang.String documentVersion, long documentTimestamp)
          Creates a StyleSheetDocument
 
Method Summary
 java.util.Enumeration getColorSchemes()
          Implementation of StyleSheetDocument.getColorSchemes();
 long getDocumentTimestamp()
          Returns a timestamp which indicates when the underlying source files which were used to create this StyleSheetDocument were last modified.
 java.lang.String getDocumentVersion()
          Returns the version identifier for this style sheet document.
 StyleNode getStyleByName(StyleContext context, java.lang.String name)
          Returns the fully-resolved StyleNode for the style with the specified name.
 StyleNode getStyleBySelector(StyleContext context, java.lang.String selector)
          Returns the fully-resolved StyleNode for the style with the specified selector.
 java.util.Enumeration getStyles(StyleContext context)
          Returns an Enumeration of StyleNode objects for the specified context.
 java.util.Enumeration getStyleSheets()
          Implementation of StyleSheetDocument.getStyleSheets();
 java.util.Enumeration getStyleSheets(StyleContext context)
          Returns all StyleSheetNodes which can be applied to the specified context, sorted from lowest to highest precedence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_TIMESTAMP

public static final long UNKNOWN_TIMESTAMP
Value used to indicate that the document timestamp is not know.
Constructor Detail

StyleSheetDocument

public StyleSheetDocument(StyleSheetNode[] styleSheets,
                          ColorSchemeNode[] colorSchemes)
Deprecated. colorScheme elements are no longer supported

Creates a StyleSheetDocument

StyleSheetDocument

public StyleSheetDocument(StyleSheetNode[] styleSheets,
                          ColorSchemeNode[] colorSchemes,
                          java.lang.String documentVersion)
Deprecated. colorScheme elements are no longer supported

Creates a StyleSheetDocument

StyleSheetDocument

public StyleSheetDocument(StyleSheetNode[] styleSheets,
                          java.lang.String documentVersion,
                          long documentTimestamp)
Creates a StyleSheetDocument
Parameters:
styleSheets - The StyleSheetNodes which define the contents of this StyleSheetDocument.
documentVersion - The version identifier for this StyleSheetDocument.
timestamp - The timestamp for this StyleSheetDocument.
Method Detail

getDocumentVersion

public java.lang.String getDocumentVersion()
Returns the version identifier for this style sheet document.

getDocumentTimestamp

public long getDocumentTimestamp()
Returns a timestamp which indicates when the underlying source files which were used to create this StyleSheetDocument were last modified. The semantics of this method are slightly different than the typical last modified timestamp (eg. File.lastModified()) in that the timestamp is determined when the StyleSheetDocument is created. The StyleSheetDocument itself represents the contents of a style sheet at a particular moment in time - and does not detect later updates to the underlying source files.

getStyleSheets

public java.util.Enumeration getStyleSheets()
Implementation of StyleSheetDocument.getStyleSheets();

getColorSchemes

public java.util.Enumeration getColorSchemes()
Implementation of StyleSheetDocument.getColorSchemes();

getStyleSheets

public java.util.Enumeration getStyleSheets(StyleContext context)
Returns all StyleSheetNodes which can be applied to the specified context, sorted from lowest to highest precedence.

getStyles

public java.util.Enumeration getStyles(StyleContext context)
Returns an Enumeration of StyleNode objects for the specified context.

getStyleBySelector

public StyleNode getStyleBySelector(StyleContext context,
                                    java.lang.String selector)
Returns the fully-resolved StyleNode for the style with the specified selector.

getStyleByName

public StyleNode getStyleByName(StyleContext context,
                                java.lang.String name)
Returns the fully-resolved StyleNode for the style with the specified name.

UIX 2.2.16