public class ReflectiveBeanProp extends BeanProp
isChoicePropertyBaseProperty.VetoExceptionbeanName, dtdName, propClass, typeINSTANCE_MANDATORY_ARRAY, INSTANCE_MANDATORY_ELT, INSTANCE_OPTIONAL_ARRAY, INSTANCE_OPTIONAL_ELT| Constructor and Description |
|---|
ReflectiveBeanProp(BaseBean bean,
String dtdName,
String beanName,
int type,
Class propClass,
boolean isRoot,
Method writer,
Method arrayWriter,
Method reader,
Method arrayReader,
Method adder,
Method remover) |
ReflectiveBeanProp(BaseBean bean,
String dtdName,
String beanName,
int type,
Class propClass,
Method writer,
Method arrayWriter,
Method reader,
Method arrayReader,
Method adder,
Method remover) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
bindingsSize() |
String |
getAttributeValue(int index,
String name)
Get the attribute value
|
String |
getFullName() |
String |
getFullName(int index)
Returns the full path name of the property (unique String name
identifying the property for the lifetime of the graph).
|
protected Object[] |
getObjectArray(int extraElements) |
Object |
getValue(int index) |
Object |
getValueById(int id)
Return the element which as the unique DOMBinding identifier id
(Every DOMBinding has a unique identifier which identifies uniquely
the DOM element referenced by the DOMBinding object.
|
int |
idToIndex(int id)
Convert a unique DOMBinding Id into a relative index value
This method may return -1 if we cannot figure out the index.
|
int |
indexToId(int index)
Convert the relative index value (the property index value) into
the unique DOMBinding id.
|
DOMBinding |
registerDomNode(Node node,
DOMBinding binding,
BaseBean bean)
This method is called to associate this bean property to a DOM Node.
|
void |
removeValue(int index) |
int |
removeValue(Object value)
Remove the object that have the bean value (.equals call)
removeValue do not leave null slots as the setValue does.
|
void |
setAttributeValue(int index,
String name,
String value)
Set the value of the attribute
|
protected int |
setElement(int index,
Object value,
boolean add)
Different cases might happen in this method, depending on the
type of the property, if the property is an array or not,
and also depending on the type of the value parameter.
|
void |
setValue(Object[] value)
Set the whole index property.
|
addKnownValue, addPCListener, addValue, addVCListener, createAttribute, createTransientAttribute, getAttributeNames, getAttributes, getAttrProp, getAttrProp, getBean, getBeanName, getChoiceProperties, getDtdName, getInstanceType, getName, getParent, getPropClass, getPropertyClass, getType, getValues, hasName, initialize, isBean, isChoiceProperty, isIndexed, isKey, isRoot, knownValues, removePCListener, removeVCListener, setValue, size, toStringpublic ReflectiveBeanProp(BaseBean bean, String dtdName, String beanName, int type, Class propClass, Method writer, Method arrayWriter, Method reader, Method arrayReader, Method adder, Method remover)
protected int bindingsSize()
bindingsSize in class BeanProppublic Object getValueById(int id)
BeanPropgetValueById in class BeanProppublic int indexToId(int index)
BeanProppublic int idToIndex(int id)
BeanPropprotected Object[] getObjectArray(int extraElements)
getObjectArray in class BeanProppublic void setValue(Object[] value)
BeanProppublic int removeValue(Object value)
BeanPropremoveValue in class BeanProppublic void removeValue(int index)
removeValue in class BeanPropprotected int setElement(int index,
Object value,
boolean add)
BeanPropsetElement in class BeanProppublic void setAttributeValue(int index,
String name,
String value)
BeanPropsetAttributeValue in class BeanProppublic String getAttributeValue(int index, String name)
BeanPropgetAttributeValue in class BeanProppublic DOMBinding registerDomNode(Node node, DOMBinding binding, BaseBean bean) throws Schema2BeansException
BeanPropregisterDomNode in class BeanPropSchema2BeansExceptionpublic String getFullName()
getFullName in interface BasePropertygetFullName in class BeanProppublic String getFullName(int index)
BasePropertygetFullName in interface BasePropertygetFullName in class BeanPropCopyright © 2017–2019 Eclipse Foundation. All rights reserved.