org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse
Class AttributeBean

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.ObjectBean
      extended by org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.AttributeBean
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
PropertyBean

public class AttributeBean
extends ObjectBean
implements Comparable

AttributeBean is a Java representation of the faces-config component or renderer attribute XML element.


Constructor Summary
AttributeBean()
           
 
Method Summary
 Iterator<String> accessibilityGuidelines()
          Returns an iterator for all accessibility guidelines on this component only.
 void addAccessibilityGuideline(String accessibilityGuideline)
          Adds an Accessibility (e.g.
 int compareTo(Object o)
           
 String getAlternateClass()
          Returns the alternative class for this property.
 String getAttributeClass()
          Returns the attribute class for this attribute.
 String[] getAttributeClassParameters()
          Returns the array of parameterized types for this attribute if it uses generics.
 String getAttributeName()
          Returns the name of this attribute.
 String getDefaultValue()
          Returns the default value of this attribute.
 String getDescription()
          Returns the description of this attribute.
 MethodSignatureBean getMethodBindingSignature()
          Returns the method binding signature of this property.
 boolean hasAccessibilityGuidelines()
          Returns true if this attribute has any accessibility guidelines.
 boolean isVirtual()
          Returns virtual flag of this property.
 void setAlternateClass(String alternateClass)
          Sets the alternative class for this property.
 void setAttributeClass(String attributeClass)
          Sets the attribute class for this attribute.
 void setAttributeName(String attributeName)
          Sets the name of this attribute.
 void setDefaultValue(String defaultValue)
          Sets the default value of this attribute.
 void setDescription(String description)
          Sets the description of this attribute.
 void setMethodBindingSignature(MethodSignatureBean signature)
          Sets the method binding signature of this property.
 void setVirtual(boolean virtual)
          Sets the virtual flag of this property.
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.builder.trinidad.parse.ObjectBean
attach, getOwner, isModifiedSince
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeBean

public AttributeBean()
Method Detail

setAttributeName

public void setAttributeName(String attributeName)
Sets the name of this attribute.

Parameters:
attributeName - the attribute name

getAttributeName

public String getAttributeName()
Returns the name of this attribute.

Returns:
the attribute name

setAttributeClass

public void setAttributeClass(String attributeClass)
Sets the attribute class for this attribute.

Parameters:
attributeClass - the attribute class

getAttributeClassParameters

public String[] getAttributeClassParameters()
Returns the array of parameterized types for this attribute if it uses generics.

Returns:
the array of parameterized types for this attribute

getAttributeClass

public String getAttributeClass()
Returns the attribute class for this attribute.

Returns:
the attribute class

setDescription

public void setDescription(String description)
Sets the description of this attribute.

Parameters:
description - the attribute description

getDescription

public String getDescription()
Returns the description of this attribute.

Returns:
the attribute description

setDefaultValue

public void setDefaultValue(String defaultValue)
Sets the default value of this attribute.

Parameters:
defaultValue - the attribute default value

getDefaultValue

public String getDefaultValue()
Returns the default value of this attribute.

Returns:
the attribute default value

setAlternateClass

public void setAlternateClass(String alternateClass)
Sets the alternative class for this property.

Parameters:
alternateClass - the alternative class

getAlternateClass

public String getAlternateClass()
Returns the alternative class for this property.

Returns:
the alternative class

setMethodBindingSignature

public void setMethodBindingSignature(MethodSignatureBean signature)
Sets the method binding signature of this property.

Parameters:
signature - the method binding signature of this property

getMethodBindingSignature

public MethodSignatureBean getMethodBindingSignature()
Returns the method binding signature of this property.

Returns:
the method binding signature of this property

addAccessibilityGuideline

public void addAccessibilityGuideline(String accessibilityGuideline)
Adds an Accessibility (e.g. section 508 compliance) Guideline to this attribute. The accessibility guidelines are used during tag doc generation to give the application developer hints on how to configure the attribute to be accessibility-compliant.

Parameters:
accessibilityGuideline - the accessibility guideline to add

hasAccessibilityGuidelines

public boolean hasAccessibilityGuidelines()
Returns true if this attribute has any accessibility guidelines.

Returns:
true if this component has any accessibility guidelines, false otherwise

accessibilityGuidelines

public Iterator<String> accessibilityGuidelines()
Returns an iterator for all accessibility guidelines on this component only.

Returns:
the accessibility guidelines iterator

setVirtual

public void setVirtual(boolean virtual)
Sets the virtual flag of this property.

Parameters:
virtual - the property required flag

isVirtual

public boolean isVirtual()
Returns virtual flag of this property.

Returns:
the property virtual flag

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


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