com.centrasite.control.registry.items.accessors
Class ConceptValueAccessor

java.lang.Object
  extended by com.centrasite.control.discovery.AbstractPropertyAccessor
      extended by com.centrasite.control.discovery.ReadWritePropertyAccessor
          extended by com.centrasite.control.registry.items.accessors.ConceptValueAccessor
All Implemented Interfaces:
PropertyAccessor

public class ConceptValueAccessor
extends ReadWritePropertyAccessor


Method Summary
static ConceptValueAccessor get()
           
 java.lang.String getPropertyName()
          Obtain name of property being accessed via this accessor.
 java.lang.String getValue(Item item)
          Get value of property for given Item
 boolean isReadOnly(Item item)
          Value of concept may be changed if t does not belong to ObjectType taxonomy
 boolean isRequired()
           
 void setValue(Item item, java.lang.String value)
          Set value of property for given Item
 
Methods inherited from class com.centrasite.control.discovery.AbstractPropertyAccessor
editProperty, getActivatingMessage, getCommands, getDescription, getDisplayName, getReferencedItem, getSelectReferencedItemDescriptor, isComplexProperty, isDateProperty, isIntProperty, isTextEditAllowed, selectReferencedItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static ConceptValueAccessor get()

getPropertyName

public java.lang.String getPropertyName()
Description copied from interface: PropertyAccessor
Obtain name of property being accessed via this accessor.

Returns:
The string being returned is an internal string NOT being constructed by means of I18N infrastructure. It may be used internally for storing user-specific settings for example selected columns in a table. This selection should not depend on the language!

getValue

public java.lang.String getValue(Item item)
                          throws java.lang.Exception
Description copied from interface: PropertyAccessor
Get value of property for given Item

Throws:
java.lang.Exception

setValue

public void setValue(Item item,
                     java.lang.String value)
              throws java.lang.Exception
Description copied from interface: PropertyAccessor
Set value of property for given Item

Throws:
java.lang.Exception

isRequired

public boolean isRequired()
Overrides:
isRequired in class ReadWritePropertyAccessor

isReadOnly

public boolean isReadOnly(Item item)
Value of concept may be changed if t does not belong to ObjectType taxonomy

Specified by:
isReadOnly in interface PropertyAccessor
Overrides:
isReadOnly in class ReadWritePropertyAccessor
Parameters:
item - the item for which it is to be checked whether the access is read-only
Returns:
true if read-only