org.outerj.daisy.repository.schema
Interface FieldType


public interface FieldType


Method Summary
 void clearSelectionList()
          Clears(removes) the SelectionList for this FieldType.
 StaticSelectionList createStaticSelectionList()
          Creates and returns a StaticSelectionList.
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.String getDescriptionExact(java.util.Locale locale)
           
 long getId()
           
 java.lang.String getLabel(java.util.Locale locale)
          Gets the label in the given locale, using the usual locale fallback mechanisms if not found in the exactly specified locale, and finally returning the fieldtype's name if no label is available.
 java.lang.String getLabelExact(java.util.Locale locale)
           
 java.util.Date getLastModified()
          When was this PartType last changed (persistently).
 long getLastModifier()
          Who (which user) last changed this PartType (persistently).
 java.lang.String getName()
           
 SelectionList getSelectionList()
          Returns the SelectionList for this FieldType if one has been defined, null if no SelectionList had been defined (i.e. not set for this FieldType using the setSelectionList(SelectionList selectionList) method).
 int getSize()
           
 long getUpdateCount()
           
 ValueType getValueType()
           
 org.outerx.daisy.x10.FieldTypeDocument getXml()
           
 boolean isAclAllowed()
          Indicates whether fields of this type can be used in object expressions of ACL rules.
 boolean isDeprecated()
           
 boolean isMultiValue()
           
 void save()
           
 void setAclAllowed(boolean aclAllowed)
           
 void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)
           
 void setDeprecated(boolean deprecated)
           
 void setDescription(java.util.Locale locale, java.lang.String description)
           
 void setLabel(java.util.Locale locale, java.lang.String label)
           
 void setName(java.lang.String name)
           
 void setSize(int size)
          Sets the size of this FieldType.
 

Method Detail

getId

public long getId()

getValueType

public ValueType getValueType()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription(java.util.Locale locale)

getDescriptionExact

public java.lang.String getDescriptionExact(java.util.Locale locale)

setDescription

public void setDescription(java.util.Locale locale,
                           java.lang.String description)

getLabel

public java.lang.String getLabel(java.util.Locale locale)
Gets the label in the given locale, using the usual locale fallback mechanisms if not found in the exactly specified locale, and finally returning the fieldtype's name if no label is available.


getLabelExact

public java.lang.String getLabelExact(java.util.Locale locale)

setLabel

public void setLabel(java.util.Locale locale,
                     java.lang.String label)

isDeprecated

public boolean isDeprecated()

setDeprecated

public void setDeprecated(boolean deprecated)

getSize

public int getSize()

setSize

public void setSize(int size)
Sets the size of this FieldType. If this method isn't called, the size will be 0. The size can be used for presentational purposes, and doesn't cause any validation to happen.


isAclAllowed

public boolean isAclAllowed()
Indicates whether fields of this type can be used in object expressions of ACL rules. When fields can be used in ACL object expressions, this means that changing the value of such as field can influence the result of the ACL.


setAclAllowed

public void setAclAllowed(boolean aclAllowed)

isMultiValue

public boolean isMultiValue()

getLastModified

public java.util.Date getLastModified()
When was this PartType last changed (persistently). Returns null on newly created FieldTypes.


getLastModifier

public long getLastModifier()
Who (which user) last changed this PartType (persistently). Returns -1 on newly created FieldTypes.


clearSelectionList

public void clearSelectionList()
Clears(removes) the SelectionList for this FieldType.


getSelectionList

public SelectionList getSelectionList()
Returns the SelectionList for this FieldType if one has been defined, null if no SelectionList had been defined (i.e. not set for this FieldType using the setSelectionList(SelectionList selectionList) method).


getXml

public org.outerx.daisy.x10.FieldTypeDocument getXml()

setAllFromXml

public void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)

save

public void save()
          throws RepositoryException
Throws:
RepositoryException

getUpdateCount

public long getUpdateCount()

createStaticSelectionList

public StaticSelectionList createStaticSelectionList()
Creates and returns a StaticSelectionList. The selection list automatically becomse the selection list of this field type.



Copyright © -2005 . All Rights Reserved.