public abstract class AbstractObjectExporter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,Variant>> |
attributes |
protected ItemFactory |
factory |
protected java.util.Map<java.lang.String,DataItem> |
items |
| Constructor and Description |
|---|
AbstractObjectExporter(ItemFactory itemFactory,
boolean readOnly,
boolean nullIsError,
java.lang.String prefix)
Create a new object factory
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDataItems(java.lang.Class<?> targetClazz)
create data items from the properties
|
void |
dispose() |
protected void |
fillAttributes(java.beans.PropertyDescriptor pd,
java.util.Map<java.lang.String,Variant> attributes) |
protected <T extends java.lang.annotation.Annotation> |
findAnnotation(java.beans.PropertyDescriptor pd,
java.lang.Class<?> clazz,
java.lang.Class<T> annotationClazz)
Find the annotation
|
protected java.util.Map<java.lang.String,Variant> |
getAdditionalAttributes() |
protected ItemOptions |
getOptions(java.beans.PropertyDescriptor pd,
java.lang.Class<?> clazz) |
protected abstract java.lang.Object |
getTarget()
Get the current target or
null if there is none |
protected void |
initAttribute(java.beans.PropertyDescriptor pd)
read the initial value of the property
|
protected java.lang.String |
makeItemName(java.beans.PropertyDescriptor pd,
java.lang.Class<?> clazz) |
protected void |
updateAttribute(java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Throwable e,
java.util.Map<java.lang.String,Variant> additionalAttributes) |
protected void |
updateItemsFromTarget() |
protected void |
writeAttribute(java.beans.PropertyDescriptor pd,
Variant value) |
protected ItemFactory factory
protected final java.util.Map<java.lang.String,DataItem> items
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,Variant>> attributes
public AbstractObjectExporter(ItemFactory itemFactory, boolean readOnly, boolean nullIsError, java.lang.String prefix)
itemFactory - the item factory to usereadOnly - flag if all properties should be created read-onlynullIsError - flag whether controls if null mean error
prefix - a local item prefixpublic void dispose()
protected void createDataItems(java.lang.Class<?> targetClazz)
protected void updateItemsFromTarget()
protected java.util.Map<java.lang.String,Variant> getAdditionalAttributes()
protected void initAttribute(java.beans.PropertyDescriptor pd)
pd - protected void fillAttributes(java.beans.PropertyDescriptor pd,
java.util.Map<java.lang.String,Variant> attributes)
protected <T extends java.lang.annotation.Annotation> T findAnnotation(java.beans.PropertyDescriptor pd,
java.lang.Class<?> clazz,
java.lang.Class<T> annotationClazz)
The following search order processed
pd - the property descriptor to checkclazz - class instancenull if none was foundprotected ItemOptions getOptions(java.beans.PropertyDescriptor pd, java.lang.Class<?> clazz)
protected java.lang.String makeItemName(java.beans.PropertyDescriptor pd,
java.lang.Class<?> clazz)
protected void updateAttribute(java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Throwable e,
java.util.Map<java.lang.String,Variant> additionalAttributes)
protected abstract java.lang.Object getTarget()
null if there is noneprotected void writeAttribute(java.beans.PropertyDescriptor pd,
Variant value)
throws java.lang.Exception
java.lang.Exception
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0