org.openmdx.ui1.cci
Class ValuedFieldImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.openmdx.ui1.cci.ValuedFieldImpl
All Implemented Interfaces:
Serializable, javax.jdo.spi.PersistenceCapable, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, org.openmdx.base.accessor.jmi.cci.RefObject_1_0, BasicObject, ContextCapable, ExtentCapable, ViewCapable, AbstractField, Element, LabelledField, ValuedField

public class ValuedFieldImpl
extends org.openmdx.base.accessor.jmi.spi.RefObject_1
implements ValuedField

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
ValuedFieldImpl(org.openmdx.base.accessor.generic.cci.Object_1_0 object, javax.jmi.reflect.RefClass refClass)
           
 
Method Summary
protected  void addContext(Context newValue)
           
protected  void addContext(String id, Context newValue)
           
protected  void addView(String namespace, View newValue)
           
protected  void addView(View newValue)
           
 String getBackColor()
           
 String getColor()
           
 Collection getContext()
          Retrieves the objects referenced by context.
 Context getContext(String id)
          Retrieves the value for the reference context for the specified qualifier attribute value.
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
protected  Date getCreatedAt(int index)
           
 Set getCreatedBy()
           
 String getDataBindingName()
           
 String getDefaultValue()
           
 List getEventHandler()
           
 String getEventHandler(int index)
           
 String getFeatureName()
           
 String getFontColor()
           
 String getFontName()
          Retrieves the value for the attribute fontName.
protected  String getFontName(int index)
           
 BigDecimal getFontSize()
          Retrieves the value for the attribute fontSize.
protected  BigDecimal getFontSize(int index)
           
 String getIconKey()
           
 String getIdentity()
          Retrieves the value for the attribute identity.
protected  String getIdentity(int index)
           
 List getLabel()
           
 String getLabel(int index)
           
 String getMimeType()
           
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
protected  Date getModifiedAt(int index)
           
 Set getModifiedBy()
           
 String getMultiplicity()
          Retrieves the value for the attribute multiplicity.
protected  String getMultiplicity(int index)
           
 String getQualifiedFeatureName()
           
 List getShortLabel()
           
 String getShortLabel(int index)
           
 int getSkipRow()
          Retrieves the value for the attribute skipRow.
protected  int getSkipRow(int index)
           
 int getSpanRow()
          Retrieves the value for the attribute spanRow.
protected  int getSpanRow(int index)
           
 List getToolTip()
           
 String getToolTip(int index)
           
 Collection getView()
          Retrieves a collection containing all the elements for the reference view.
 View getView(String namespace)
          Retrieves the value for the reference view for the specified qualifier attribute value.
 List getView(ViewFilter filter)
          Retrieves the value for the reference view for the specified filter.
 List getView(ViewQuery query)
          Retrieves the value for the reference view for the specified query.
 boolean isAutoGenerated()
          Retrieves the value for the attribute autoGenerated.
protected  boolean isAutoGenerated(int index)
           
 boolean isChangeable()
          Retrieves the value for the attribute changeable.
protected  boolean isChangeable(int index)
           
 boolean isFilterable()
          Retrieves the value for the attribute filterable.
protected  boolean isFilterable(int index)
           
 boolean isFontBold()
          Retrieves the value for the attribute fontBold.
protected  boolean isFontBold(int index)
           
 boolean isFontItalic()
          Retrieves the value for the attribute fontItalic.
protected  boolean isFontItalic(int index)
           
 boolean isFontStrikeout()
          Retrieves the value for the attribute fontStrikeout.
protected  boolean isFontStrikeout(int index)
           
 boolean isFontUnderline()
          Retrieves the value for the attribute fontUnderline.
protected  boolean isFontUnderline(int index)
           
 boolean isSortable()
          Retrieves the value for the attribute sortable.
protected  boolean isSortable(int index)
           
protected  void removeContext(String id)
           
protected  void removeView(String namespace)
           
 void setAutoGenerated(boolean newValue)
          Sets a new value for the attribute autoGenerated.
protected  void setAutoGenerated(int index, boolean newValue)
           
 void setBackColor(String newValue)
          Sets a new value for the attribute backColor.
 void setChangeable(boolean newValue)
          Sets a new value for the attribute changeable.
protected  void setChangeable(int index, boolean newValue)
           
 void setColor(String newValue)
          Sets a new value for the attribute color.
protected  void setContext(Context[] newValue)
           
protected  void setContext(List newValue)
           
protected  void setCreatedAt(Date newValue)
           
protected  void setCreatedAt(int index, Date newValue)
           
protected  void setCreatedBy(Set newValue)
           
protected  void setCreatedBy(String[] newValue)
           
 void setDataBindingName(String newValue)
          Sets a new value for the attribute dataBindingName.
 void setDefaultValue(String newValue)
          Sets a new value for the attribute defaultValue.
 void setEventHandler(List newValue)
           
 void setEventHandler(String[] newValue)
           
 void setFeatureName(String newValue)
          Sets a new value for the attribute featureName.
 void setFilterable(boolean newValue)
          Sets a new value for the attribute filterable.
protected  void setFilterable(int index, boolean newValue)
           
 void setFontBold(boolean newValue)
          Sets a new value for the attribute fontBold.
protected  void setFontBold(int index, boolean newValue)
           
 void setFontColor(String newValue)
          Sets a new value for the attribute fontColor.
 void setFontItalic(boolean newValue)
          Sets a new value for the attribute fontItalic.
protected  void setFontItalic(int index, boolean newValue)
           
protected  void setFontName(int index, String newValue)
           
 void setFontName(String newValue)
          Sets a new value for the attribute fontName.
 void setFontSize(BigDecimal newValue)
          Sets a new value for the attribute fontSize.
protected  void setFontSize(int index, BigDecimal newValue)
           
 void setFontStrikeout(boolean newValue)
          Sets a new value for the attribute fontStrikeout.
protected  void setFontStrikeout(int index, boolean newValue)
           
 void setFontUnderline(boolean newValue)
          Sets a new value for the attribute fontUnderline.
protected  void setFontUnderline(int index, boolean newValue)
           
 void setIconKey(String newValue)
          Sets a new value for the attribute iconKey.
protected  void setIdentity(int index, String newValue)
           
protected  void setIdentity(String newValue)
           
 void setLabel(List newValue)
           
 void setLabel(String[] newValue)
           
 void setMimeType(String newValue)
          Sets a new value for the attribute mimeType.
protected  void setModifiedAt(Date newValue)
           
protected  void setModifiedAt(int index, Date newValue)
           
protected  void setModifiedBy(Set newValue)
           
protected  void setModifiedBy(String[] newValue)
           
protected  void setMultiplicity(int index, String newValue)
           
 void setMultiplicity(String newValue)
          Sets a new value for the attribute multiplicity.
 void setQualifiedFeatureName(String newValue)
          Sets a new value for the attribute qualifiedFeatureName.
 void setShortLabel(List newValue)
           
 void setShortLabel(String[] newValue)
           
 void setSkipRow(int newValue)
          Sets a new value for the attribute skipRow.
protected  void setSkipRow(int index, int newValue)
           
 void setSortable(boolean newValue)
          Sets a new value for the attribute sortable.
protected  void setSortable(int index, boolean newValue)
           
 void setSpanRow(int newValue)
          Sets a new value for the attribute spanRow.
protected  void setSpanRow(int index, int newValue)
           
 void setToolTip(List newValue)
           
 void setToolTip(String[] newValue)
           
protected  void setView(List newValue)
           
protected  void setView(View[] newValue)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Constructor Detail

ValuedFieldImpl

public ValuedFieldImpl(org.openmdx.base.accessor.generic.cci.Object_1_0 object,
                       javax.jmi.reflect.RefClass refClass)
Method Detail

getCreatedAt

public Date getCreatedAt()
Description copied from interface: BasicObject
Retrieves the value for the attribute createdAt.

Specified by:
getCreatedAt in interface BasicObject
Returns:
The non-null value for attribute createdAt.

getCreatedAt

protected Date getCreatedAt(int index)

setCreatedAt

protected void setCreatedAt(Date newValue)

setCreatedAt

protected void setCreatedAt(int index,
                            Date newValue)

getCreatedBy

public Set getCreatedBy()
Specified by:
getCreatedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

setCreatedBy

protected void setCreatedBy(Set newValue)

setCreatedBy

protected void setCreatedBy(String[] newValue)

getModifiedAt

public Date getModifiedAt()
Description copied from interface: BasicObject
Retrieves the value for the attribute modifiedAt.

Specified by:
getModifiedAt in interface BasicObject
Returns:
The non-null value for attribute modifiedAt.

getModifiedAt

protected Date getModifiedAt(int index)

setModifiedAt

protected void setModifiedAt(Date newValue)

setModifiedAt

protected void setModifiedAt(int index,
                             Date newValue)

getModifiedBy

public Set getModifiedBy()
Specified by:
getModifiedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

setModifiedBy

protected void setModifiedBy(Set newValue)

setModifiedBy

protected void setModifiedBy(String[] newValue)

setContext

protected void setContext(List newValue)

setContext

protected void setContext(Context[] newValue)

getContext

public Context getContext(String id)
Description copied from interface: ContextCapable
Retrieves the value for the reference context for the specified qualifier attribute value.

Specified by:
getContext in interface ContextCapable
Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getContext

public Collection getContext()
Description copied from interface: ContextCapable
Retrieves the objects referenced by context.

Specified by:
getContext in interface ContextCapable
Returns:
The collection of referenced objects.

addContext

protected void addContext(String id,
                          Context newValue)

addContext

protected void addContext(Context newValue)

removeContext

protected void removeContext(String id)

getIdentity

public String getIdentity()
Description copied from interface: ExtentCapable
Retrieves the value for the attribute identity.

Specified by:
getIdentity in interface ExtentCapable
Returns:
The non-null value for attribute identity.

getIdentity

protected String getIdentity(int index)

setIdentity

protected void setIdentity(String newValue)

setIdentity

protected void setIdentity(int index,
                           String newValue)

setView

protected void setView(List newValue)

setView

protected void setView(View[] newValue)

getView

public View getView(String namespace)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified qualifier attribute value.

Specified by:
getView in interface ViewCapable
Parameters:
namespace - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this reference.

getView

public Collection getView()
Description copied from interface: ViewCapable
Retrieves a collection containing all the elements for the reference view.

Specified by:
getView in interface ViewCapable
Returns:
A collection containing all the elements for this reference.

getView

public List getView(ViewFilter filter)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified filter.

Specified by:
getView in interface ViewCapable
Parameters:
filter - filter which is applied to the set of referenced objects.
Returns:
The filtered collection of referenced objects.

getView

public List getView(ViewQuery query)
Description copied from interface: ViewCapable
Retrieves the value for the reference view for the specified query.

Specified by:
getView in interface ViewCapable
Returns:
The filtered collection of referenced objects.

addView

protected void addView(String namespace,
                       View newValue)

addView

protected void addView(View newValue)

removeView

protected void removeView(String namespace)

getBackColor

public String getBackColor()
Specified by:
getBackColor in interface AbstractField
Returns:
The possibly null value for attribute backColor.

setBackColor

public void setBackColor(String newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute backColor.

Specified by:
setBackColor in interface AbstractField
Parameters:
newValue - The possibly null new value for attribute backColor.

getColor

public String getColor()
Specified by:
getColor in interface AbstractField
Returns:
The possibly null value for attribute color.

setColor

public void setColor(String newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute color.

Specified by:
setColor in interface AbstractField
Parameters:
newValue - The possibly null new value for attribute color.

isFontBold

public boolean isFontBold()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontBold.

Specified by:
isFontBold in interface AbstractField
Returns:
The non-null value for attribute fontBold.

isFontBold

protected boolean isFontBold(int index)

setFontBold

public void setFontBold(boolean newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontBold.

Specified by:
setFontBold in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontBold.

setFontBold

protected void setFontBold(int index,
                           boolean newValue)

getFontColor

public String getFontColor()
Specified by:
getFontColor in interface AbstractField
Returns:
The possibly null value for attribute fontColor.

setFontColor

public void setFontColor(String newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontColor.

Specified by:
setFontColor in interface AbstractField
Parameters:
newValue - The possibly null new value for attribute fontColor.

isFontItalic

public boolean isFontItalic()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontItalic.

Specified by:
isFontItalic in interface AbstractField
Returns:
The non-null value for attribute fontItalic.

isFontItalic

protected boolean isFontItalic(int index)

setFontItalic

public void setFontItalic(boolean newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontItalic.

Specified by:
setFontItalic in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontItalic.

setFontItalic

protected void setFontItalic(int index,
                             boolean newValue)

getFontName

public String getFontName()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontName.

Specified by:
getFontName in interface AbstractField
Returns:
The non-null value for attribute fontName.

getFontName

protected String getFontName(int index)

setFontName

public void setFontName(String newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontName.

Specified by:
setFontName in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontName.

setFontName

protected void setFontName(int index,
                           String newValue)

getFontSize

public BigDecimal getFontSize()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontSize.

Specified by:
getFontSize in interface AbstractField
Returns:
The non-null value for attribute fontSize.

getFontSize

protected BigDecimal getFontSize(int index)

setFontSize

public void setFontSize(BigDecimal newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontSize.

Specified by:
setFontSize in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontSize.

setFontSize

protected void setFontSize(int index,
                           BigDecimal newValue)

isFontStrikeout

public boolean isFontStrikeout()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontStrikeout.

Specified by:
isFontStrikeout in interface AbstractField
Returns:
The non-null value for attribute fontStrikeout.

isFontStrikeout

protected boolean isFontStrikeout(int index)

setFontStrikeout

public void setFontStrikeout(boolean newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontStrikeout.

Specified by:
setFontStrikeout in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontStrikeout.

setFontStrikeout

protected void setFontStrikeout(int index,
                                boolean newValue)

isFontUnderline

public boolean isFontUnderline()
Description copied from interface: AbstractField
Retrieves the value for the attribute fontUnderline.

Specified by:
isFontUnderline in interface AbstractField
Returns:
The non-null value for attribute fontUnderline.

isFontUnderline

protected boolean isFontUnderline(int index)

setFontUnderline

public void setFontUnderline(boolean newValue)
Description copied from interface: AbstractField
Sets a new value for the attribute fontUnderline.

Specified by:
setFontUnderline in interface AbstractField
Parameters:
newValue - The non-null new value for attribute fontUnderline.

setFontUnderline

protected void setFontUnderline(int index,
                                boolean newValue)

isAutoGenerated

public boolean isAutoGenerated()
Description copied from interface: Element
Retrieves the value for the attribute autoGenerated.

Specified by:
isAutoGenerated in interface Element
Returns:
The non-null value for attribute autoGenerated.

isAutoGenerated

protected boolean isAutoGenerated(int index)

setAutoGenerated

public void setAutoGenerated(boolean newValue)
Description copied from interface: Element
Sets a new value for the attribute autoGenerated.

Specified by:
setAutoGenerated in interface Element
Parameters:
newValue - The non-null new value for attribute autoGenerated.

setAutoGenerated

protected void setAutoGenerated(int index,
                                boolean newValue)

isChangeable

public boolean isChangeable()
Description copied from interface: Element
Retrieves the value for the attribute changeable.

Specified by:
isChangeable in interface Element
Returns:
The non-null value for attribute changeable.

isChangeable

protected boolean isChangeable(int index)

setChangeable

public void setChangeable(boolean newValue)
Description copied from interface: Element
Sets a new value for the attribute changeable.

Specified by:
setChangeable in interface Element
Parameters:
newValue - The non-null new value for attribute changeable.

setChangeable

protected void setChangeable(int index,
                             boolean newValue)

getIconKey

public String getIconKey()
Specified by:
getIconKey in interface Element
Returns:
The possibly null value for attribute iconKey.

setIconKey

public void setIconKey(String newValue)
Description copied from interface: Element
Sets a new value for the attribute iconKey.

Specified by:
setIconKey in interface Element
Parameters:
newValue - The possibly null new value for attribute iconKey.

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Element
Returns:
The possibly null value for attribute mimeType.

setMimeType

public void setMimeType(String newValue)
Description copied from interface: Element
Sets a new value for the attribute mimeType.

Specified by:
setMimeType in interface Element
Parameters:
newValue - The possibly null new value for attribute mimeType.

getToolTip

public List getToolTip()
Specified by:
getToolTip in interface Element
Returns:
A list containing all elements for this attribute.

getToolTip

public String getToolTip(int index)
Specified by:
getToolTip in interface Element
Parameters:
index - The index of the element to return.
Returns:
The element at the specified position in the list of all values for this attribute.

setToolTip

public void setToolTip(List newValue)
Specified by:
setToolTip in interface Element
Parameters:
newValue - A list containing all the new elements for this attribute.

setToolTip

public void setToolTip(String[] newValue)
Specified by:
setToolTip in interface Element
Parameters:
newValue - An array containing all the new elements for this attribute.

getLabel

public List getLabel()
Specified by:
getLabel in interface LabelledField
Returns:
A list containing all elements for this attribute.

getLabel

public String getLabel(int index)
Specified by:
getLabel in interface LabelledField
Parameters:
index - The index of the element to return.
Returns:
The element at the specified position in the list of all values for this attribute.

setLabel

public void setLabel(List newValue)
Specified by:
setLabel in interface LabelledField
Parameters:
newValue - A list containing all the new elements for this attribute.

setLabel

public void setLabel(String[] newValue)
Specified by:
setLabel in interface LabelledField
Parameters:
newValue - An array containing all the new elements for this attribute.

getShortLabel

public List getShortLabel()
Specified by:
getShortLabel in interface LabelledField
Returns:
A list containing all elements for this attribute.

getShortLabel

public String getShortLabel(int index)
Specified by:
getShortLabel in interface LabelledField
Parameters:
index - The index of the element to return.
Returns:
The element at the specified position in the list of all values for this attribute.

setShortLabel

public void setShortLabel(List newValue)
Specified by:
setShortLabel in interface LabelledField
Parameters:
newValue - A list containing all the new elements for this attribute.

setShortLabel

public void setShortLabel(String[] newValue)
Specified by:
setShortLabel in interface LabelledField
Parameters:
newValue - An array containing all the new elements for this attribute.

getDataBindingName

public String getDataBindingName()
Specified by:
getDataBindingName in interface ValuedField
Returns:
The possibly null value for attribute dataBindingName.

setDataBindingName

public void setDataBindingName(String newValue)
Description copied from interface: ValuedField