public class IlpDefaultAttributeBinding extends IlpAbstractAttributeBinding
Object
to a SDM model property of the same
type, with no type conversion in between.IlpAbstractAttributeBinding.ConversionFailedException, IlpAbstractAttributeBinding.PropertyAlreadySetException, IlpAbstractAttributeBinding.Type
_attributeName, _attributeType, _bindingContext, _propertyName, _propertyType, _type
Constructor and Description |
---|
IlpDefaultAttributeBinding(IlpAbstractAttributeBinding.Type bindingType,
String attrName,
Class<?> attrType)
Constructor.
|
IlpDefaultAttributeBinding(IlpAbstractAttributeBinding.Type bindingType,
String attrName,
Class<?> attrType,
String propName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
convertToAttribute(Object newPropVal)
Converts a value from the SDM model property target type to the
TGO attribute source type.
|
Object |
convertToProperty(Object newAttrVal)
Converts a value from the TGO attribute source type to the
SDM model property target type.
|
equals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validate
public IlpDefaultAttributeBinding(IlpAbstractAttributeBinding.Type bindingType, String attrName, Class<?> attrType, String propName)
Constructor.
bindingType
- The binding typeattrName
- The TGO attribute nameattrType
- The TGO attribute value typepropName
- The SDM model property namepublic IlpDefaultAttributeBinding(IlpAbstractAttributeBinding.Type bindingType, String attrName, Class<?> attrType)
Constructor.
It assumes that the TGO attribute and the SDM property names are the same.
bindingType
- The binding typeattrName
- The name of the TGO attribute and SDM propertyattrType
- The TGO attribute value typepublic Object convertToAttribute(Object newPropVal)
IlpAbstractAttributeBinding
Converts a value from the SDM model property target type to the TGO attribute source type.
It can throw RuntimeException
if the conversion fails.
convertToAttribute
in class IlpAbstractAttributeBinding
newPropVal
- The target valuepublic Object convertToProperty(Object newAttrVal)
IlpAbstractAttributeBinding
Converts a value from the TGO attribute source type to the SDM model property target type.
It can throw RuntimeException
if the conversion fails.
convertToProperty
in class IlpAbstractAttributeBinding
newAttrVal
- The TGO attribute value© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.