org.apache.myfaces.custom.dynaForm.metadata
Class MetaData.FieldImpl
java.lang.Object
org.apache.myfaces.custom.dynaForm.metadata.MetaData.FieldImpl
- All Implemented Interfaces:
- java.io.Serializable, FieldInterface
- Enclosing class:
- MetaData
public static class MetaData.FieldImpl
- extends java.lang.Object
- implements FieldInterface, java.io.Serializable
Metadata for a field
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaData.FieldImpl
protected MetaData.FieldImpl(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface FieldInterface
getBaseName
public java.lang.String getBaseName()
- Specified by:
getBaseName
in interface FieldInterface
getExternalName
public java.lang.String getExternalName()
- Specified by:
getExternalName
in interface FieldInterface
getPreferredExternalName
public java.lang.String getPreferredExternalName()
setPreferredExternalName
public void setPreferredExternalName(java.lang.String preferredExternalName)
getType
public java.lang.Class getType()
- Specified by:
getType
in interface FieldInterface
setType
public void setType(java.lang.Class type)
getDisplayOnly
public java.lang.Boolean getDisplayOnly()
- Specified by:
getDisplayOnly
in interface FieldInterface
setDisplayOnly
public void setDisplayOnly(java.lang.Boolean displayOnly)
isCanRead
public boolean isCanRead()
setCanRead
public void setCanRead(boolean canRead)
getCanRead
public java.lang.Boolean getCanRead()
- Specified by:
getCanRead
in interface FieldInterface
setCanWrite
public void setCanWrite(boolean canWrite)
getCanWrite
public java.lang.Boolean getCanWrite()
- Specified by:
getCanWrite
in interface FieldInterface
setDisabled
public void setDisabled(boolean disabled)
getDisabled
public java.lang.Boolean getDisabled()
- Specified by:
getDisabled
in interface FieldInterface
getRequired
public boolean getRequired()
- Specified by:
getRequired
in interface FieldInterface
setRequired
public void setRequired(boolean nullable)
getAllowedSelections
public Selection[] getAllowedSelections()
- Specified by:
getAllowedSelections
in interface FieldInterface
setAllowedSelections
public void setAllowedSelections(Selection[] allowedSelections)
getRelationType
public RelationType getRelationType()
- Specified by:
getRelationType
in interface FieldInterface
setRelationType
public void setRelationType(RelationType relationType)
getMaxSize
public java.lang.Integer getMaxSize()
- Specified by:
getMaxSize
in interface FieldInterface
setMaxSize
public void setMaxSize(java.lang.Integer maxSize)
getMaxValue
public java.lang.Double getMaxValue()
- Specified by:
getMaxValue
in interface FieldInterface
setMaxValue
public void setMaxValue(java.lang.Double maxValue)
getMinSize
public java.lang.Integer getMinSize()
- Specified by:
getMinSize
in interface FieldInterface
setMinSize
public void setMinSize(java.lang.Integer minSize)
getMinValue
public java.lang.Double getMinValue()
- Specified by:
getMinValue
in interface FieldInterface
setMinValue
public void setMinValue(java.lang.Double minValue)
setWantedComponent
public void setWantedComponent(javax.faces.component.UIComponent component)
getWantedComponent
public javax.faces.component.UIComponent getWantedComponent()
- Specified by:
getWantedComponent
in interface FieldInterface
setWantedComponentType
public void setWantedComponentType(ComponentEnum componentType)
getWantedComponentType
public ComponentEnum getWantedComponentType()
- Specified by:
getWantedComponentType
in interface FieldInterface
setDisplaySize
public void setDisplaySize(int displaySize)
getDisplaySize
public java.lang.Integer getDisplaySize()
- Specified by:
getDisplaySize
in interface FieldInterface
setTemporalType
public void setTemporalType(javax.persistence.TemporalType temporalType)
getTemporalType
public javax.persistence.TemporalType getTemporalType()
- Specified by:
getTemporalType
in interface FieldInterface
getAllowMultipleSelections
public boolean getAllowMultipleSelections()
- Specified by:
getAllowMultipleSelections
in interface FieldInterface
setAllowMultipleSelections
public void setAllowMultipleSelections(boolean allowMultipleSelections)
getSelectionSource
public SelectionSourceEnum getSelectionSource()
- Specified by:
getSelectionSource
in interface FieldInterface
setSelectionSource
public void setSelectionSource(SelectionSourceEnum selectionSource)
isEntityType
public boolean isEntityType()
- Specified by:
isEntityType
in interface FieldInterface
setEntityType
public void setEntityType(boolean entityType)
isEmbedded
public boolean isEmbedded()
- Description copied from interface:
FieldInterface
- in case of hierarchical structures this defines if a child class should be treatened
as "embedded".
- Embedded: like a composite key in hibernate
- Not Embedded: like a relation to another entity (ManyToOne)
This is not a metadata for the field itself, but for the context in which this field
(or its entity) will be used
- Specified by:
isEmbedded
in interface FieldInterface
setEmbedded
public void setEmbedded(boolean embedded)
getDataSource
public java.lang.String getDataSource()
- Specified by:
getDataSource
in interface FieldInterface
setDataSource
public void setDataSource(java.lang.String dataSource)
getDataSourceDescription
public java.lang.String getDataSourceDescription()
- Specified by:
getDataSourceDescription
in interface FieldInterface
setDataSourceDescription
public void setDataSourceDescription(java.lang.String dataSourceDescription)
getConverterId
public java.lang.String getConverterId()
- Specified by:
getConverterId
in interface FieldInterface
setConverterId
public void setConverterId(java.lang.String converterId)
getConverterClass
public java.lang.Class getConverterClass()
- Specified by:
getConverterClass
in interface FieldInterface
setConverterClass
public void setConverterClass(java.lang.Class converterClass)
Copyright © 2010. All Rights Reserved.