com.ca.jcs.converter.meta
Class ClassConverter

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.converter.meta.ClassConverter
Direct Known Subclasses:
JSONCompoundValueClassConverter, NullValueClassConverter, VirtualFullNameHandler

public abstract class ClassConverter
extends Vetoable

Destructively convert all the attributes provided for an operation based on the metadata associated with a DataModelClass and its contained properties.


Field Summary
protected  MetaObjectClassMapping classMap
           
protected  ConverterConfig converterConfig
           
 
Constructor Summary
ClassConverter(ConverterConfig cfg, MetaObjectClassMapping classMap)
           
 
Method Summary
abstract  void convertFromConnector(Attributes attrs)
           
abstract  void convertToConnector(Attributes attrs)
          Create/add case.
abstract  ModificationItem[] convertToConnector(ModificationItem[] modItems)
          Update/modify case.
abstract  boolean isStructural()
          Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves.
 
Methods inherited from class com.ca.jcs.cfg.Vetoable
isVetoed, setVetoed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classMap

protected final MetaObjectClassMapping classMap

converterConfig

protected final ConverterConfig converterConfig
Constructor Detail

ClassConverter

public ClassConverter(ConverterConfig cfg,
                      MetaObjectClassMapping classMap)
Method Detail

isStructural

public abstract boolean isStructural()
Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves. For instance changing Attributes representations into an alternative representation such as JSON is an example of a structural conversion.


convertToConnector

public abstract void convertToConnector(Attributes attrs)
                                 throws NamingException
Create/add case.

Throws:
NamingException

convertToConnector

public abstract ModificationItem[] convertToConnector(ModificationItem[] modItems)
                                               throws NamingException
Update/modify case.

Throws:
NamingException

convertFromConnector

public abstract void convertFromConnector(Attributes attrs)
                                   throws NamingException
Throws:
NamingException


Created 2011-07-14 13:27 EST