com.arsdigita.formbuilder
Class AttributeMetaData

java.lang.Object
  extended bycom.arsdigita.formbuilder.AttributeMetaData

public class AttributeMetaData
extends Object

Represents the metadata of one attribute of a AttributeMetaDataProvider.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/AttributeMetaData.java#7 $
Author:
Peter Marklund

Field Summary
static String versionId
           
 
Constructor Summary
AttributeMetaData(String parameterName)
           
AttributeMetaData(String parameterName, AttributeType attributeType)
           
AttributeMetaData(String parameterName, boolean isRequired)
           
AttributeMetaData(String parameterName, boolean isRequired, boolean isMultiple)
           
AttributeMetaData(String parameterName, String label)
           
AttributeMetaData(String parameterName, String label, AttributeType attributeType)
           
AttributeMetaData(String parameterName, String label, boolean isRequired)
           
AttributeMetaData(String parameterName, String label, boolean isRequired, boolean isMultiple, AttributeType attributeType)
          Constructor.
 
Method Summary
 AttributeType getAttributeType()
          Will return null if no attribute type has been set
 String getLabel()
           
 ParameterModel getParameterModel()
          This method may return null.
 String getParameterName()
           
 boolean isMultiple()
           
 void isMultiple(boolean isMultiple)
           
 boolean isRequired()
           
 void isRequired(boolean isRequired)
           
 void setAttributeType(AttributeType attributeType)
           
 void setLabel(String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

AttributeMetaData

public AttributeMetaData(String parameterName)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         boolean isRequired)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         boolean isRequired,
                         boolean isMultiple)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         AttributeType attributeType)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         String label)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         String label,
                         boolean isRequired)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         String label,
                         AttributeType attributeType)

AttributeMetaData

public AttributeMetaData(String parameterName,
                         String label,
                         boolean isRequired,
                         boolean isMultiple,
                         AttributeType attributeType)
Constructor.

Parameters:
parameterName - The HTML parameter name of the attribute
label - The label text to be used on a form
attributeType - The data type of the attribute. String will be used as default in other constructors
Method Detail

getParameterName

public String getParameterName()

setLabel

public void setLabel(String label)

getLabel

public String getLabel()

isRequired

public void isRequired(boolean isRequired)

isRequired

public boolean isRequired()

isMultiple

public void isMultiple(boolean isMultiple)

isMultiple

public boolean isMultiple()

setAttributeType

public void setAttributeType(AttributeType attributeType)

getAttributeType

public AttributeType getAttributeType()
Will return null if no attribute type has been set


getParameterModel

public ParameterModel getParameterModel()
This method may return null.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC