org.apache.myfaces.trinidadinternal.style.xml.parse
Class StyleNode

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.style.xml.parse.StyleNode

public class StyleNode
extends java.lang.Object

Private implementation of StyleNode.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/xml/parse/StyleNode.java#0 $) $Date: 10-nov-2005.18:58:11 $

Constructor Summary
StyleNode(java.lang.String name, java.lang.String selector, PropertyNode[] properties, PropertyNode[] skinProperties, IncludeStyleNode[] includedStyles, IncludePropertyNode[] includedProperties, IncludeCompactPropertyNode[] includedCompactProperties, java.util.Set<java.lang.String> inhibitedProperties)
          Creates a Style with the specified properties
StyleNode(java.lang.String name, java.lang.String selector, PropertyNode[] properties, PropertyNode[] skinProperties, IncludeStyleNode[] includedStyles, IncludePropertyNode[] includedProperties, IncludeCompactPropertyNode[] includedCompactProperties, java.util.Set<java.lang.String> inhibitedProperties, boolean resetProperties)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Collection<IncludeCompactPropertyNode> getIncludedCompactProperties()
          Implementation of StyleNode.getIncludedCompactProperties().
 java.util.Collection<IncludePropertyNode> getIncludedProperties()
          Return a Collection of IncludePropertyNode objects for the StyleNode.
 java.util.Collection<IncludeStyleNode> getIncludedStyles()
          Return a Collection of IncludeStyleNode objects for the StyleNode.
 java.util.Collection<java.lang.String> getInhibitedProperties()
          Gets the properties specified by this node's parent that should be ignored.
 java.lang.String getName()
          Implementation of StyleNode.getName().
 java.util.Collection<PropertyNode> getProperties()
          Implementation of StyleNode.getProperties().
 java.lang.String getSelector()
          Implementation of StyleNode.getSelector().
 java.util.Collection<PropertyNode> getSkinProperties()
          Implementation of StyleNode.getSkinProperties().
 int hashCode()
           
 boolean isEmpty()
          Returns true if the style node has no properties.
 boolean isInhibitingAll()
          Determines if this node inhibits all of its inherited properties.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleNode

public StyleNode(java.lang.String name,
                 java.lang.String selector,
                 PropertyNode[] properties,
                 PropertyNode[] skinProperties,
                 IncludeStyleNode[] includedStyles,
                 IncludePropertyNode[] includedProperties,
                 IncludeCompactPropertyNode[] includedCompactProperties,
                 java.util.Set<java.lang.String> inhibitedProperties)
Creates a Style with the specified properties


StyleNode

public StyleNode(java.lang.String name,
                 java.lang.String selector,
                 PropertyNode[] properties,
                 PropertyNode[] skinProperties,
                 IncludeStyleNode[] includedStyles,
                 IncludePropertyNode[] includedProperties,
                 IncludeCompactPropertyNode[] includedCompactProperties,
                 java.util.Set<java.lang.String> inhibitedProperties,
                 boolean resetProperties)
Method Detail

getName

public java.lang.String getName()
Implementation of StyleNode.getName().


getSelector

public java.lang.String getSelector()
Implementation of StyleNode.getSelector().


isEmpty

public boolean isEmpty()
Returns true if the style node has no properties.


getProperties

public java.util.Collection<PropertyNode> getProperties()
Implementation of StyleNode.getProperties().


getSkinProperties

public java.util.Collection<PropertyNode> getSkinProperties()
Implementation of StyleNode.getSkinProperties().


getIncludedCompactProperties

public java.util.Collection<IncludeCompactPropertyNode> getIncludedCompactProperties()
Implementation of StyleNode.getIncludedCompactProperties().


getIncludedStyles

public java.util.Collection<IncludeStyleNode> getIncludedStyles()
Return a Collection of IncludeStyleNode objects for the StyleNode. This method will return a Collections.emptyList this StyleNode does not have any IncludeStyleNode.

Returns:
a Collection of the IncludeStyleNode Objects, a Collections.emptyList if there are no IncludeStyleNode Objects in this StyleNode.

getIncludedProperties

public java.util.Collection<IncludePropertyNode> getIncludedProperties()
Return a Collection of IncludePropertyNode objects for the StyleNode. This method will return a Collections.emptyList this StyleNode does not have any IncludePropertyNodes.

Returns:
a Collection of the IncludePropertyNode Objects, a Collections.emptyList if there are no IncludePropertyNode Objects in this StyleNode.

getInhibitedProperties

public java.util.Collection<java.lang.String> getInhibitedProperties()
Gets the properties specified by this node's parent that should be ignored. This method will return a Collections.emptyList if isInhibitingAll() returns true

Returns:
a Collection of the properties that should be ignored, an Collection.emptyList if all properties should be.

isInhibitingAll

public boolean isInhibitingAll()
Determines if this node inhibits all of its inherited properties.

Returns:
true if this node ignores all properties defined by its parent, false otherwise.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.