org.andromda.cartridges.jsf.metafacades
Class JSFAttributeLogic

java.lang.Object
  extended by org.andromda.core.metafacade.MetafacadeBase
      extended by org.andromda.cartridges.jsf.metafacades.JSFAttributeLogic
All Implemented Interfaces:
JSFAttribute, org.andromda.metafacades.uml.AttributeFacade, org.andromda.metafacades.uml.ModelElementFacade
Direct Known Subclasses:
JSFAttributeLogicImpl

public abstract class JSFAttributeLogic
extends org.andromda.core.metafacade.MetafacadeBase
implements JSFAttribute

MetafacadeLogic for org.andromda.cartridges.jsf.metafacades.JSFAttribute

See Also:
JSFAttribute

Field Summary
protected  java.lang.Object metaObject
           
 
Fields inherited from class org.andromda.core.metafacade.MetafacadeBase
contextRoot, logger
 
Constructor Summary
JSFAttributeLogic(java.lang.Object metaObject, java.lang.String context)
           
 
Method Summary
 void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
           
 java.lang.Object findTaggedValue(java.lang.String tagName)
           
 java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
           
 java.util.Collection findTaggedValues(java.lang.String tagName)
           
 java.lang.String getBackingListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Gets backing list name for this attribute.
 java.lang.String getBackingValueName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Constructs and returns the backing value name given the 'ownerParameter'.
 java.util.Collection getConstraints()
           
 java.util.Collection getConstraints(java.lang.String kind)
           
 java.lang.String getDateFormatter(JSFParameter ownerParameter)
           Gets the name of the date formatter for this attribute by constructing the name from the 'ownerParameter' (if this attribute represents a date).
 java.lang.String getDefaultValue()
           
 java.lang.String getDocumentation(java.lang.String indent)
           
 java.lang.String getDocumentation(java.lang.String indent, int lineLength)
           
 java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
           
 java.lang.String getDummyValue()
           The dummy value to give the attribute when creating a dummy instance of this attribute's owner.
 org.andromda.metafacades.uml.EnumerationFacade getEnumeration()
           
 java.lang.String getEnumerationLiteralParameters()
           
 java.lang.String getEnumerationValue()
           
 java.lang.String getFormat()
           If this attributes represents a date or time this method will return the format in which it must be represented.
 java.lang.String getFormPropertyId(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Gets the unique id of this attribute on the form.
 java.lang.String getFormPropertyName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Retrieves the name of the form property for this attribute by taking the name of the owner property.
 java.lang.String getFullyQualifiedName()
           
 java.lang.String getFullyQualifiedName(boolean modelName)
           
 java.lang.String getFullyQualifiedNamePath()
           
 java.lang.String getGetterName()
           
 java.lang.String getGetterSetterTypeName()
           
 java.lang.String getId()
           
 java.lang.String getInputTableIdentifierColumns()
           A comma seperated list of the input table identifier columns (these are the columns that uniquely define a row in an input table).
 java.lang.String getLabelListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Gets the name of the label list for this parameter.
 org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
           
 int getLower()
           
 java.lang.String getMessageKey()
           The message key for this attribute.
 java.lang.String getMessageValue()
           The default value for the message key.
 org.andromda.metafacades.uml.ModelFacade getModel()
           
 java.lang.String getName()
           
 org.andromda.metafacades.uml.ClassifierFacade getOwner()
           
 org.andromda.metafacades.uml.ModelElementFacade getPackage()
           
 java.lang.String getPackageName()
           
 java.lang.String getPackageName(boolean modelName)
           
 java.lang.String getPackagePath()
           
 org.andromda.metafacades.uml.PackageFacade getRootPackage()
           
 java.lang.String getSetterName()
           
 java.util.Collection getSourceDependencies()
           
 org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
           
 java.util.Collection getStereotypeNames()
           
 java.util.Collection getStereotypes()
           
 java.util.Collection getTaggedValues()
           
 java.util.Collection getTargetDependencies()
           
 java.lang.Object getTemplateParameter(java.lang.String parameterName)
           
 java.util.Collection getTemplateParameters()
           
 java.lang.String getTimeFormatter(JSFParameter ownerParameter)
           Gets the name of the time formatter (if this parameter represents a time).
 org.andromda.metafacades.uml.ClassifierFacade getType()
           
 int getUpper()
           
 java.lang.String getValidationName()
           
 java.lang.Object getValidationOwner()
           
 java.util.Collection getValidatorArgs(java.lang.String validatorType)
           Gets the arguments for this parameter's validators.
 java.util.Collection getValidatorTypes()
           All validator types for this attribute.
 java.util.Collection getValidatorVars(JSFParameter ownerParameter)
           Gets the validator args for this attribute
 java.lang.String getValidWhen()
           The validator's 'validwhen' value, this is useful when the validation of a parameter depends on the validation of others.
 java.lang.String getValueListDummyValue()
           The dummy value for a value list.
 java.lang.String getValueListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           Gets the name of the value list for this parameter; this list stores the possible values that this attribute may be (typically used for the values of a drop-down select list).
 java.lang.String getVisibility()
           
protected abstract  java.lang.String handleGetBackingListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  java.lang.String handleGetBackingValueName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  java.lang.String handleGetDateFormatter(JSFParameter ownerParameter)
           
protected abstract  java.lang.String handleGetDummyValue()
           
protected abstract  java.lang.String handleGetFormat()
           
protected abstract  java.lang.String handleGetFormPropertyId(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  java.lang.String handleGetFormPropertyName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  java.lang.String handleGetInputTableIdentifierColumns()
           
protected abstract  java.lang.String handleGetLabelListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  java.lang.String handleGetMessageKey()
           
protected abstract  java.lang.String handleGetMessageValue()
           
protected abstract  java.lang.String handleGetTimeFormatter(JSFParameter ownerParameter)
           
protected abstract  java.util.Collection handleGetValidatorArgs(java.lang.String validatorType)
           
protected abstract  java.util.Collection handleGetValidatorTypes()
           
protected abstract  java.util.Collection handleGetValidatorVars(JSFParameter ownerParameter)
           
protected abstract  java.lang.String handleGetValidWhen()
           
protected abstract  java.lang.String handleGetValueListDummyValue()
           
protected abstract  java.lang.String handleGetValueListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
           
protected abstract  boolean handleIsBackingValueRequired(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
           
protected abstract  boolean handleIsEqualValidator()
           
protected abstract  boolean handleIsInputCheckbox()
           
protected abstract  boolean handleIsInputFile()
           
protected abstract  boolean handleIsInputHidden()
           
protected abstract  boolean handleIsInputMultibox()
           
protected abstract  boolean handleIsInputRadio()
           
protected abstract  boolean handleIsInputSecret()
           
protected abstract  boolean handleIsInputSelect()
           
protected abstract  boolean handleIsInputTable()
           
protected abstract  boolean handleIsInputText()
           
protected abstract  boolean handleIsInputTextarea()
           
protected abstract  boolean handleIsInputTypePresent()
           
protected abstract  boolean handleIsPlaintext()
           
protected abstract  boolean handleIsReset()
           
protected abstract  boolean handleIsSelectable(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
           
protected abstract  boolean handleIsStrictDateFormat()
           
protected abstract  boolean handleIsValidationRequired()
           
 boolean hasExactStereotype(java.lang.String stereotypeName)
           
 boolean hasStereotype(java.lang.String stereotypeName)
           
 void initialize()
           
 boolean isAddOnly()
           
 boolean isAttributeFacadeMetaType()
           
 boolean isBackingValueRequired(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
           Indicates whether or not the backing value is required for this attribute (depending on the 'ownerParameter').
 boolean isBindingDependenciesPresent()
           
 boolean isChangeable()
           
 boolean isConstraintsPresent()
           
 boolean isDefaultValuePresent()
           
 boolean isEnumerationLiteral()
           
 boolean isEnumerationLiteralParametersExist()
           
 boolean isEnumerationMember()
           
 boolean isEqualValidator()
           Indicates whether or not this parameter uses the equal validator.
 boolean isInputCheckbox()
           Indicates if this parameter represents a checkbox widget.
 boolean isInputFile()
           Indicates whether or not this is a file input type.
 boolean isInputHidden()
           Indicates whether or not this parameter represents a hidden input widget.
 boolean isInputMultibox()
           Indicates whether or not this type represents an input multibox.
 boolean isInputRadio()
           Indicates whether or not this parameter should be rendered as an input radio widget.
 boolean isInputSecret()
           Indicates whether or not this parameter represents an input "secret" widget (i.e.
 boolean isInputSelect()
           Indicates whether or not this parameter represents an input select widget.
 boolean isInputTable()
           Indicates whether or not this is an table input type.
 boolean isInputText()
           Indicates whether or not this parameter should be rendered as a text input widget.
 boolean isInputTextarea()
           Indicates if this parameter represents as an input text area widget.
 boolean isInputTypePresent()
           Indicates whether or not there is an input type defined for this attribute.
 boolean isJSFAttributeMetaType()
          Indicates the metafacade type (used for metafacade mappings).
 boolean isMany()
           
 boolean isModelElementFacadeMetaType()
           
 boolean isOrdered()
           
 boolean isPlaintext()
           Indicates whether or not this attribute's value should be rendered as plain text (not as a widget).
 boolean isReadOnly()
           
 boolean isRequired()
           
 boolean isReset()
           
 boolean isSelectable(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
           Indicates whether or not this attribute is selectable according to its 'ownerParameter'.
 boolean isStatic()
           
 boolean isStrictDateFormat()
           Indicates where or not the date format is to be strictly respected.
 boolean isTemplateParametersPresent()
           
 boolean isValidationRequired()
           Indicates whether or not this attribute requires some kind of validation (the collection of validator types is not empty).
 void resetMetafacadeContext(java.lang.String context)
           
 java.lang.String toString()
           
 java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
           
 java.lang.String[] translateConstraints(java.lang.String translation)
           
 java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
           
 void validateInvariants(java.util.Collection validationMessages)
           
 
Methods inherited from class org.andromda.core.metafacade.MetafacadeBase
equals, getConfiguredProperty, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaObject

protected java.lang.Object metaObject
Constructor Detail

JSFAttributeLogic

public JSFAttributeLogic(java.lang.Object metaObject,
                         java.lang.String context)
Method Detail

resetMetafacadeContext

public void resetMetafacadeContext(java.lang.String context)
Overrides:
resetMetafacadeContext in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase

isJSFAttributeMetaType

public boolean isJSFAttributeMetaType()
Description copied from interface: JSFAttribute
Indicates the metafacade type (used for metafacade mappings).

Specified by:
isJSFAttributeMetaType in interface JSFAttribute
Returns:
always true
See Also:
JSFAttribute

handleGetMessageKey

protected abstract java.lang.String handleGetMessageKey()
See Also:
JSFAttribute.getMessageKey()

getMessageKey

public final java.lang.String getMessageKey()
Description copied from interface: JSFAttribute

The message key for this attribute.

Specified by:
getMessageKey in interface JSFAttribute

handleGetMessageValue

protected abstract java.lang.String handleGetMessageValue()
See Also:
JSFAttribute.getMessageValue()

getMessageValue

public final java.lang.String getMessageValue()
Description copied from interface: JSFAttribute

The default value for the message key.

Specified by:
getMessageValue in interface JSFAttribute

handleGetDummyValue

protected abstract java.lang.String handleGetDummyValue()
See Also:
JSFAttribute.getDummyValue()

getDummyValue

public final java.lang.String getDummyValue()
Description copied from interface: JSFAttribute

The dummy value to give the attribute when creating a dummy instance of this attribute's owner.

Specified by:
getDummyValue in interface JSFAttribute

handleGetFormat

protected abstract java.lang.String handleGetFormat()
See Also:
JSFAttribute.getFormat()

getFormat

public final java.lang.String getFormat()
Description copied from interface: JSFAttribute

If this attributes represents a date or time this method will return the format in which it must be represented. In the event this format has not been specified by the any tagged value the default will be used.

Specified by:
getFormat in interface JSFAttribute

handleIsInputTextarea

protected abstract boolean handleIsInputTextarea()
See Also:
JSFAttribute.isInputTextarea()

isInputTextarea

public final boolean isInputTextarea()
Description copied from interface: JSFAttribute

Indicates if this parameter represents as an input text area widget.

Specified by:
isInputTextarea in interface JSFAttribute

handleIsInputText

protected abstract boolean handleIsInputText()
See Also:
JSFAttribute.isInputText()

isInputText

public final boolean isInputText()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter should be rendered as a text input widget.

Specified by:
isInputText in interface JSFAttribute

handleIsInputSecret

protected abstract boolean handleIsInputSecret()
See Also:
JSFAttribute.isInputSecret()

isInputSecret

public final boolean isInputSecret()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter represents an input "secret" widget (i.e. password).

Specified by:
isInputSecret in interface JSFAttribute

handleIsInputSelect

protected abstract boolean handleIsInputSelect()
See Also:
JSFAttribute.isInputSelect()

isInputSelect

public final boolean isInputSelect()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter represents an input select widget.

Specified by:
isInputSelect in interface JSFAttribute

handleIsInputRadio

protected abstract boolean handleIsInputRadio()
See Also:
JSFAttribute.isInputRadio()

isInputRadio

public final boolean isInputRadio()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter should be rendered as an input radio widget.

Specified by:
isInputRadio in interface JSFAttribute

handleIsInputMultibox

protected abstract boolean handleIsInputMultibox()
See Also:
JSFAttribute.isInputMultibox()

isInputMultibox

public final boolean isInputMultibox()
Description copied from interface: JSFAttribute

Indicates whether or not this type represents an input multibox.

Specified by:
isInputMultibox in interface JSFAttribute

handleIsInputHidden

protected abstract boolean handleIsInputHidden()
See Also:
JSFAttribute.isInputHidden()

isInputHidden

public final boolean isInputHidden()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter represents a hidden input widget.

Specified by:
isInputHidden in interface JSFAttribute

handleIsInputFile

protected abstract boolean handleIsInputFile()
See Also:
JSFAttribute.isInputFile()

isInputFile

public final boolean isInputFile()
Description copied from interface: JSFAttribute

Indicates whether or not this is a file input type.

Specified by:
isInputFile in interface JSFAttribute

handleIsInputCheckbox

protected abstract boolean handleIsInputCheckbox()
See Also:
JSFAttribute.isInputCheckbox()

isInputCheckbox

public final boolean isInputCheckbox()
Description copied from interface: JSFAttribute

Indicates if this parameter represents a checkbox widget.

Specified by:
isInputCheckbox in interface JSFAttribute

handleGetValueListDummyValue

protected abstract java.lang.String handleGetValueListDummyValue()
See Also:
JSFAttribute.getValueListDummyValue()

getValueListDummyValue

public final java.lang.String getValueListDummyValue()
Description copied from interface: JSFAttribute

The dummy value for a value list.

Specified by:
getValueListDummyValue in interface JSFAttribute

handleGetValidWhen

protected abstract java.lang.String handleGetValidWhen()
See Also:
JSFAttribute.getValidWhen()

getValidWhen

public final java.lang.String getValidWhen()
Description copied from interface: JSFAttribute

The validator's 'validwhen' value, this is useful when the validation of a parameter depends on the validation of others. See the apache commons-validator documentation for more information.

Specified by:
getValidWhen in interface JSFAttribute

handleGetValidatorTypes

protected abstract java.util.Collection handleGetValidatorTypes()
See Also:
JSFAttribute.getValidatorTypes()

getValidatorTypes

public final java.util.Collection getValidatorTypes()
Description copied from interface: JSFAttribute

All validator types for this attribute.

Specified by:
getValidatorTypes in interface JSFAttribute

handleIsValidationRequired

protected abstract boolean handleIsValidationRequired()
See Also:
JSFAttribute.isValidationRequired()

isValidationRequired

public final boolean isValidationRequired()
Description copied from interface: JSFAttribute

Indicates whether or not this attribute requires some kind of validation (the collection of validator types is not empty).

Specified by:
isValidationRequired in interface JSFAttribute

handleIsStrictDateFormat

protected abstract boolean handleIsStrictDateFormat()
See Also:
JSFAttribute.isStrictDateFormat()

isStrictDateFormat

public final boolean isStrictDateFormat()
Description copied from interface: JSFAttribute

Indicates where or not the date format is to be strictly respected. Otherwise the date formatter used for the representation of this date is to be set to lenient.

Specified by:
isStrictDateFormat in interface JSFAttribute

handleIsEqualValidator

protected abstract boolean handleIsEqualValidator()
See Also:
JSFAttribute.isEqualValidator()

isEqualValidator

public final boolean isEqualValidator()
Description copied from interface: JSFAttribute

Indicates whether or not this parameter uses the equal validator.

Specified by:
isEqualValidator in interface JSFAttribute

handleIsInputTable

protected abstract boolean handleIsInputTable()
See Also:
JSFAttribute.isInputTable()

isInputTable

public final boolean isInputTable()
Description copied from interface: JSFAttribute

Indicates whether or not this is an table input type.

Specified by:
isInputTable in interface JSFAttribute

handleIsInputTypePresent

protected abstract boolean handleIsInputTypePresent()
See Also:
JSFAttribute.isInputTypePresent()

isInputTypePresent

public final boolean isInputTypePresent()
Description copied from interface: JSFAttribute

Indicates whether or not there is an input type defined for this attribute.

Specified by:
isInputTypePresent in interface JSFAttribute

handleIsPlaintext

protected abstract boolean handleIsPlaintext()
See Also:
JSFAttribute.isPlaintext()

isPlaintext

public final boolean isPlaintext()
Description copied from interface: JSFAttribute

Indicates whether or not this attribute's value should be rendered as plain text (not as a widget).

Specified by:
isPlaintext in interface JSFAttribute

handleGetInputTableIdentifierColumns

protected abstract java.lang.String handleGetInputTableIdentifierColumns()
See Also:
JSFAttribute.getInputTableIdentifierColumns()

getInputTableIdentifierColumns

public final java.lang.String getInputTableIdentifierColumns()
Description copied from interface: JSFAttribute

A comma seperated list of the input table identifier columns (these are the columns that uniquely define a row in an input table).

Specified by:
getInputTableIdentifierColumns in interface JSFAttribute

handleIsReset

protected abstract boolean handleIsReset()
See Also:
JSFAttribute.isReset()

isReset

public final boolean isReset()
Specified by:
isReset in interface JSFAttribute

handleGetFormPropertyName

protected abstract java.lang.String handleGetFormPropertyName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getFormPropertyName

public java.lang.String getFormPropertyName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Retrieves the name of the form property for this attribute by taking the name of the owner property.

Specified by:
getFormPropertyName in interface JSFAttribute

handleGetFormPropertyId

protected abstract java.lang.String handleGetFormPropertyId(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getFormPropertyId

public java.lang.String getFormPropertyId(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Gets the unique id of this attribute on the form.

Specified by:
getFormPropertyId in interface JSFAttribute

handleGetBackingListName

protected abstract java.lang.String handleGetBackingListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getBackingListName

public java.lang.String getBackingListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Gets backing list name for this attribute. This is useful if you want to be able to select the attribute value from a list (i.e. a drop-down select input type).

Specified by:
getBackingListName in interface JSFAttribute

handleGetLabelListName

protected abstract java.lang.String handleGetLabelListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getLabelListName

public java.lang.String getLabelListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Gets the name of the label list for this parameter. The label list name is the name of the list storing the labels for the possible values of this attribute (typically used for the labels of a drop-down select lists).

Specified by:
getLabelListName in interface JSFAttribute

handleGetValueListName

protected abstract java.lang.String handleGetValueListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getValueListName

public java.lang.String getValueListName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Gets the name of the value list for this parameter; this list stores the possible values that this attribute may be (typically used for the values of a drop-down select list).

Specified by:
getValueListName in interface JSFAttribute

handleIsSelectable

protected abstract boolean handleIsSelectable(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)

isSelectable

public boolean isSelectable(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
Description copied from interface: JSFAttribute

Indicates whether or not this attribute is selectable according to its 'ownerParameter'.

Specified by:
isSelectable in interface JSFAttribute

handleGetValidatorArgs

protected abstract java.util.Collection handleGetValidatorArgs(java.lang.String validatorType)

getValidatorArgs

public java.util.Collection getValidatorArgs(java.lang.String validatorType)
Description copied from interface: JSFAttribute

Gets the arguments for this parameter's validators.

Specified by:
getValidatorArgs in interface JSFAttribute

handleGetDateFormatter

protected abstract java.lang.String handleGetDateFormatter(JSFParameter ownerParameter)

getDateFormatter

public java.lang.String getDateFormatter(JSFParameter ownerParameter)
Description copied from interface: JSFAttribute

Gets the name of the date formatter for this attribute by constructing the name from the 'ownerParameter' (if this attribute represents a date).

Specified by:
getDateFormatter in interface JSFAttribute

handleGetTimeFormatter

protected abstract java.lang.String handleGetTimeFormatter(JSFParameter ownerParameter)

getTimeFormatter

public java.lang.String getTimeFormatter(JSFParameter ownerParameter)
Description copied from interface: JSFAttribute

Gets the name of the time formatter (if this parameter represents a time).

Specified by:
getTimeFormatter in interface JSFAttribute

handleGetBackingValueName

protected abstract java.lang.String handleGetBackingValueName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)

getBackingValueName

public java.lang.String getBackingValueName(org.andromda.metafacades.uml.ParameterFacade ownerParameter)
Description copied from interface: JSFAttribute

Constructs and returns the backing value name given the 'ownerParameter'.

Specified by:
getBackingValueName in interface JSFAttribute

handleIsBackingValueRequired

protected abstract boolean handleIsBackingValueRequired(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)

isBackingValueRequired

public boolean isBackingValueRequired(org.andromda.metafacades.uml.FrontEndParameter ownerParameter)
Description copied from interface: JSFAttribute

Indicates whether or not the backing value is required for this attribute (depending on the 'ownerParameter').

Specified by:
isBackingValueRequired in interface JSFAttribute

handleGetValidatorVars

protected abstract java.util.Collection handleGetValidatorVars(JSFParameter ownerParameter)

getValidatorVars

public java.util.Collection getValidatorVars(JSFParameter ownerParameter)
Description copied from interface: JSFAttribute

Gets the validator args for this attribute

Specified by:
getValidatorVars in interface JSFAttribute

isAttributeFacadeMetaType

public boolean isAttributeFacadeMetaType()
Specified by:
isAttributeFacadeMetaType in interface org.andromda.metafacades.uml.AttributeFacade
See Also:
AttributeFacade

isModelElementFacadeMetaType

public boolean isModelElementFacadeMetaType()
Specified by:
isModelElementFacadeMetaType in interface org.andromda.metafacades.uml.ModelElementFacade
See Also:
ModelElementFacade

findTaggedValue

public java.lang.Object findTaggedValue(java.lang.String name,
                                        boolean follow)
Specified by:
findTaggedValue in interface org.andromda.metafacades.uml.AttributeFacade

getDefaultValue

public java.lang.String getDefaultValue()
Specified by:
getDefaultValue in interface org.andromda.metafacades.uml.AttributeFacade

getEnumeration

public org.andromda.metafacades.uml.EnumerationFacade getEnumeration()
Specified by:
getEnumeration in interface org.andromda.metafacades.uml.AttributeFacade

getEnumerationLiteralParameters

public java.lang.String getEnumerationLiteralParameters()
Specified by:
getEnumerationLiteralParameters in interface org.andromda.metafacades.uml.AttributeFacade

getEnumerationValue

public java.lang.String getEnumerationValue()
Specified by:
getEnumerationValue in interface org.andromda.metafacades.uml.AttributeFacade

getGetterName

public java.lang.String getGetterName()
Specified by:
getGetterName in interface org.andromda.metafacades.uml.AttributeFacade

getGetterSetterTypeName

public java.lang.String getGetterSetterTypeName()
Specified by:
getGetterSetterTypeName in interface org.andromda.metafacades.uml.AttributeFacade

getLower

public int getLower()
Specified by:
getLower in interface org.andromda.metafacades.uml.AttributeFacade

getOwner

public org.andromda.metafacades.uml.ClassifierFacade getOwner()
Specified by:
getOwner in interface org.andromda.metafacades.uml.AttributeFacade

getSetterName

public java.lang.String getSetterName()
Specified by:
getSetterName in interface org.andromda.metafacades.uml.AttributeFacade

getType

public org.andromda.metafacades.uml.ClassifierFacade getType()
Specified by:
getType in interface org.andromda.metafacades.uml.AttributeFacade

getUpper

public int getUpper()
Specified by:
getUpper in interface org.andromda.metafacades.uml.AttributeFacade

isAddOnly

public boolean isAddOnly()
Specified by:
isAddOnly in interface org.andromda.metafacades.uml.AttributeFacade

isChangeable

public boolean isChangeable()
Specified by:
isChangeable in interface org.andromda.metafacades.uml.AttributeFacade

isDefaultValuePresent

public boolean isDefaultValuePresent()
Specified by:
isDefaultValuePresent in interface org.andromda.metafacades.uml.AttributeFacade

isEnumerationLiteral

public boolean isEnumerationLiteral()
Specified by:
isEnumerationLiteral in interface org.andromda.metafacades.uml.AttributeFacade

isEnumerationLiteralParametersExist

public boolean isEnumerationLiteralParametersExist()
Specified by:
isEnumerationLiteralParametersExist in interface org.andromda.metafacades.uml.AttributeFacade

isEnumerationMember

public boolean isEnumerationMember()
Specified by:
isEnumerationMember in interface org.andromda.metafacades.uml.AttributeFacade

isMany

public boolean isMany()
Specified by:
isMany in interface org.andromda.metafacades.uml.AttributeFacade

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface org.andromda.metafacades.uml.AttributeFacade

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface org.andromda.metafacades.uml.AttributeFacade

isRequired

public boolean isRequired()
Specified by:
isRequired in interface org.andromda.metafacades.uml.AttributeFacade

isStatic

public boolean isStatic()
Specified by:
isStatic in interface org.andromda.metafacades.uml.AttributeFacade

copyTaggedValues

public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
Specified by:
copyTaggedValues in interface org.andromda.metafacades.uml.ModelElementFacade

findTaggedValue

public java.lang.Object findTaggedValue(java.lang.String tagName)
Specified by:
findTaggedValue in interface org.andromda.metafacades.uml.ModelElementFacade

findTaggedValues

public java.util.Collection findTaggedValues(java.lang.String tagName)
Specified by:
findTaggedValues in interface org.andromda.metafacades.uml.ModelElementFacade

getConstraints

public java.util.Collection getConstraints()
Specified by:
getConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

getConstraints

public java.util.Collection getConstraints(java.lang.String kind)
Specified by:
getConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

getDocumentation

public java.lang.String getDocumentation(java.lang.String indent,
                                         int lineLength)
Specified by:
getDocumentation in interface org.andromda.metafacades.uml.ModelElementFacade

getDocumentation

public java.lang.String getDocumentation(java.lang.String indent,
                                         int lineLength,
                                         boolean htmlStyle)
Specified by:
getDocumentation in interface org.andromda.metafacades.uml.ModelElementFacade