org.opencrx.kernel.code1.jdo2
Class CodeValueEntry

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.code1.jdo2.AbstractEntry
              extended by org.opencrx.kernel.code1.jdo2.CodeValueEntry
All Implemented Interfaces:
Serializable, SecureObject, AbstractEntry, CodeValueEntry, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class CodeValueEntry
extends AbstractEntry
implements CodeValueEntry

Class CodeValueEntry

See Also:
Serialized Form

Nested Class Summary
static class CodeValueEntry.Slice
          Slice object hold the CodeValueEntry's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.code1.jdo2.AbstractEntry
AbstractEntry.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.code1.cci2.AbstractEntry
AbstractEntry.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::code1::CodeValueEntry
 
Fields inherited from class org.opencrx.kernel.code1.jdo2.AbstractEntry
BASE_CLASS
 
Constructor Summary
CodeValueEntry()
           
 
Method Summary
 String getBackColor()
          Retrieves the possibly null value for the optional attribute backColor.
 String getColor()
          Retrieves the possibly null value for the optional attribute color.
 String getFontWeight()
          Retrieves the possibly null value for the optional attribute fontWeight.
 String getIconKey()
          Retrieves the possibly null value for the optional attribute iconKey.
 List<String> getLongText()
          Retrieves a list containing all the elements for the attribute longText.
 List<String> getShortText()
          Retrieves a list containing all the elements for the attribute shortText.
static AbstractEntry.Identity newIdentity(CodeValueContainer.Identity valueContainer, boolean codeIsPersistent, String code)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static AbstractEntry.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
           
 void setBackColor(String backColor)
          Sets a new value for the attribute backColor.
 void setColor(String color)
          Sets a new value for the attribute color.
 void setFontWeight(String fontWeight)
          Sets a new value for the attribute fontWeight.
 void setIconKey(String iconKey)
          Sets a new value for the attribute iconKey.
 void setLongText(String... longText)
          Clears longText and adds the given value(s).
 void setShortText(String... shortText)
          Clears shortText and adds the given value(s).
 
Methods inherited from class org.opencrx.kernel.code1.jdo2.AbstractEntry
addOwningGroup, addToValueContainer, addToValueContainer, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getCreatedAt, getCreatedBy, getEntryValue, getIdentity, getModifiedAt, getModifiedBy, getOwner, getOwningGroup, getOwningUser, getValidFrom, getValidTo, getView, getView, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setEntryValue, setOwningUser, setOwningUser, setValidFrom, setValidTo
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.code1.cci2.AbstractEntry
getEntryValue, getValidFrom, getValidTo, setEntryValue, setValidFrom, setValidTo
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::code1::CodeValueEntry

Constructor Detail

CodeValueEntry

public CodeValueEntry()
Method Detail

getBackColor

public final String getBackColor()
Retrieves the possibly null value for the optional attribute backColor.

Specified by:
getBackColor in interface CodeValueEntry
Returns:
The possibly null value for attribute backColor.

setBackColor

public void setBackColor(String backColor)
Sets a new value for the attribute backColor.

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

getFontWeight

public final String getFontWeight()
Retrieves the possibly null value for the optional attribute fontWeight.

Specified by:
getFontWeight in interface CodeValueEntry
Returns:
The possibly null value for attribute fontWeight.

setFontWeight

public void setFontWeight(String fontWeight)
Sets a new value for the attribute fontWeight.

Specified by:
setFontWeight in interface CodeValueEntry
Parameters:
fontWeight - The possibly null new value for attribute fontWeight.

getColor

public final String getColor()
Retrieves the possibly null value for the optional attribute color.

Specified by:
getColor in interface CodeValueEntry
Returns:
The possibly null value for attribute color.

setColor

public void setColor(String color)
Sets a new value for the attribute color.

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

getShortText

public final List<String> getShortText()
Retrieves a list containing all the elements for the attribute shortText.

Specified by:
getShortText in interface CodeValueEntry
Returns:
A list containing all elements for this attribute.

setShortText

public void setShortText(String... shortText)
Clears shortText and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setShortText in interface CodeValueEntry
Parameters:
shortText - value(s) to be added to shortText

getLongText

public final List<String> getLongText()
Retrieves a list containing all the elements for the attribute longText.

Specified by:
getLongText in interface CodeValueEntry
Returns:
A list containing all elements for this attribute.

setLongText

public void setLongText(String... longText)
Clears longText and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setLongText in interface CodeValueEntry
Parameters:
longText - value(s) to be added to longText

getIconKey

public final String getIconKey()
Retrieves the possibly null value for the optional attribute iconKey.

Specified by:
getIconKey in interface CodeValueEntry
Returns:
The possibly null value for attribute iconKey.

setIconKey

public void setIconKey(String iconKey)
Sets a new value for the attribute iconKey.

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

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class AbstractEntry

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class AbstractEntry

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class AbstractEntry

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class AbstractEntry
Returns:
the model class
See Also:
CodeValueEntry.CLASS

newIdentity

public static AbstractEntry.Identity newIdentity(CodeValueContainer.Identity valueContainer,
                                                 boolean codeIsPersistent,
                                                 String code)

openmdxjdoToIdentity

public static AbstractEntry.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.