|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.cfg.Vetoable
com.ca.jcs.converter.meta.PropertyConverter
public abstract class PropertyConverter
Convert an attribute's values given it's type and constraints available
in the metadata stored on prop, in both the "toward
connector" direction (toConnector) and "from connector" direction
(fromConnector).
| Field Summary | |
|---|---|
protected ConverterConfig |
config
|
protected DataModelProperty |
prop
|
| Constructor Summary | |
|---|---|
PropertyConverter(ConverterConfig cfg,
DataModelProperty prop)
|
|
| Method Summary | |
|---|---|
void |
convertFromConnector(Attribute connAttrVals)
|
void |
convertToConnector(Attribute ldapAttrVals)
|
AttributeConverter |
getAttrConverter()
|
ConverterConfig |
getConfig()
returns the configuration object for this converter |
Converter |
getConverter()
Can be null for some structural converters. |
DataModelType |
getTargetValueOverride()
Override to return a type if desired, in which case any AttributeConverter registered against this value will be cleared when this property converter is activated for a property. |
boolean |
isLossy()
Returns true if the converter performs a lossy attribute value conversion |
boolean |
isMultiValued()
|
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. |
void |
setAttrConverter(AttributeConverter attrConverter)
|
| 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 |
|---|
protected final ConverterConfig config
protected final DataModelProperty prop
| Constructor Detail |
|---|
public PropertyConverter(ConverterConfig cfg,
DataModelProperty prop)
| Method Detail |
|---|
public ConverterConfig getConfig()
public DataModelType getTargetValueOverride()
public boolean isMultiValued()
isMultiValued in interface AttributeConverterpublic boolean isStructural()
isStructural in interface AttributeConverterpublic boolean isLossy()
AttributeConverter
isLossy in interface AttributeConverterpublic Converter getConverter()
AttributeConverter
getConverter in interface AttributeConverterpublic AttributeConverter getAttrConverter()
public void setAttrConverter(AttributeConverter attrConverter)
public void convertToConnector(Attribute ldapAttrVals)
throws NamingException
convertToConnector in interface AttributeConverterNamingException
public void convertFromConnector(Attribute connAttrVals)
throws NamingException
convertFromConnector in interface AttributeConverterNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||