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

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

public class IncludePropertyNode
extends java.lang.Object

An IncludePropertyNode is a data structure to store this syntax: color: -tr-property-ref(".AFDarkColor:alias",color); The includeProperty element is used to include a single property of one style within another style. Thus, the -tr-property-ref element is very similar to the -tr-rule-ref element, which is stored in IncludeStyleNode. The only difference is that -tr-rule-ref includes all properties of the referenced style, whereas -tr-property-ref includes only a single property.

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

Constructor Summary
IncludePropertyNode(java.lang.String name, java.lang.String selector, java.lang.String propertyName, java.lang.String localPropertyName)
          Creates an IncludePropertyNode.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLocalPropertyName()
          Returns the name of the property as it should appear in the including style.
 java.lang.String getName()
          Returns the name of the style to include.
 java.lang.String getPropertyName()
          Returns the name of the property to include
 java.lang.String getSelector()
          Returns the selector of the style to include.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncludePropertyNode

public IncludePropertyNode(java.lang.String name,
                           java.lang.String selector,
                           java.lang.String propertyName,
                           java.lang.String localPropertyName)
Creates an IncludePropertyNode. In general, either the name (selector that does not get written to the css file, like an :alias) or the selector of the included style is specified.

Parameters:
name - name of the included style if it is a namedStyle
selector - name of the included style selector if it is a selector and not a namedStyle
propertyName - propertyName of the included style you want to get the value of
localPropertyName - if the css is color: 1px solid -tr-property-ref(...), the localPropertyName is 'color'.
Method Detail

getName

public java.lang.String getName()
Returns the name of the style to include.


getSelector

public java.lang.String getSelector()
Returns the selector of the style to include.


getPropertyName

public java.lang.String getPropertyName()
Returns the name of the property to include


getLocalPropertyName

public java.lang.String getLocalPropertyName()
Returns the name of the property as it should appear in the including style.


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.