org.apache.myfaces.buildtools.maven2.plugin.builder.model
Class AttributeMeta

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.model.AttributeMeta

public class AttributeMeta
extends Object

Store metadata about a attribute of a jsp tag.

This metadata defines the attributes of JSP tags, among other things. Since this is a different concept from PropertyMeta, is is left as another class (Maybe PropertyMeta must AttributeMeta but I'm not sure, since there are different concepts (a property is for jsf, an attribute is for jsp)).


Constructor Summary
AttributeMeta()
           
AttributeMeta(AttributeMeta am)
           
 
Method Summary
static void addXmlRules(org.apache.commons.digester.Digester digester, String prefix)
          Add digester rules to repopulate a Model instance from an xml file.
 void copy(AttributeMeta other)
          Copy all attributes in other to this instance.
 String getClassName()
           
 String getDeferredMethodSignature()
          Indicate the method signature that values should be cast on tld.
 String getDeferredValueType()
          Indicate the type that values should be cast on tld.
 String getDescription()
           
 String getLongDescription()
           
 String getName()
           
 Boolean isExclude()
           
 Boolean isFaceletsOnly()
           
 Boolean isRequired()
           
 Boolean isRtexprvalue()
           
 void merge(AttributeMeta other)
          Merge the data in the specified other property into this one, throwing an exception if there is an incompatibility.
 void setClassName(String className)
          Set the fully-qualified name of the type of this property.
 void setDeferredMethodSignature(String deferredMethodSignature)
           
 void setDeferredValueType(String deferredValueType)
           
 void setDescription(String desc)
           
 void setExclude(Boolean exclude)
           
 void setFaceletsOnly(Boolean faceletsOnly)
           
 void setLongDescription(String desc)
           
 void setName(String name)
          Set the name that users refer to this property by.
 void setRequired(Boolean required)
          Specify whether this property is required, ie whether it is a syntax error for someone to use a tag for a component with this property but not explicitly provide a value for this property.
 void setRtexprvalue(Boolean rtexprvalue)
           
static void writeXml(XmlWriter out, AttributeMeta am)
          Write this model out as xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeMeta

public AttributeMeta()

AttributeMeta

public AttributeMeta(AttributeMeta am)
Since:
1.0.4
Method Detail

writeXml

public static void writeXml(XmlWriter out,
                            AttributeMeta am)
Write this model out as xml.


addXmlRules

public static void addXmlRules(org.apache.commons.digester.Digester digester,
                               String prefix)
Add digester rules to repopulate a Model instance from an xml file.


merge

public void merge(AttributeMeta other)
Merge the data in the specified other property into this one, throwing an exception if there is an incompatibility.


copy

public void copy(AttributeMeta other)
Copy all attributes in other to this instance.

Parameters:
other -
Since:
1.0.3

setName

public void setName(String name)
Set the name that users refer to this property by.

This sets the name of xml tag attributes, and the base names of generated getter/setter methods.


getName

public String getName()

setClassName

public void setClassName(String className)
Set the fully-qualified name of the type of this property.


getClassName

public String getClassName()

setRequired

public void setRequired(Boolean required)
Specify whether this property is required, ie whether it is a syntax error for someone to use a tag for a component with this property but not explicitly provide a value for this property.


isRequired

public Boolean isRequired()

setRtexprvalue

public void setRtexprvalue(Boolean rtexprvalue)

isRtexprvalue

public Boolean isRtexprvalue()

setDescription

public void setDescription(String desc)

getDescription

public String getDescription()

setLongDescription

public void setLongDescription(String desc)

getLongDescription

public String getLongDescription()

setDeferredValueType

public void setDeferredValueType(String deferredValueType)
Since:
1.0.3

getDeferredValueType

public String getDeferredValueType()
Indicate the type that values should be cast on tld. It is supposed that the className is javax.el.ValueExpression to apply it.

Since:
1.0.3

setDeferredMethodSignature

public void setDeferredMethodSignature(String deferredMethodSignature)
Since:
1.0.3

getDeferredMethodSignature

public String getDeferredMethodSignature()
Indicate the method signature that values should be cast on tld. It is supposed that the className is javax.el.MethodExpression to apply it.

Since:
1.0.3

isExclude

public Boolean isExclude()
Since:
1.0.3

setExclude

public void setExclude(Boolean exclude)
Since:
1.0.3

isFaceletsOnly

public Boolean isFaceletsOnly()
Since:
1.0.6

setFaceletsOnly

public void setFaceletsOnly(Boolean faceletsOnly)
Since:
1.0.6


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