public abstract class ExporterBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATTR_ID |
protected static String |
ATTR_NAME |
protected static String |
ATTR_SUBJECT |
protected static String |
ATTR_TYPE |
protected static String |
ATTR_VALUE |
protected static String |
ATTR_VERSION |
protected static QName |
DEF_IMM_OBJ_NAME |
protected static QName |
DEF_OBJ_NAME |
protected Set |
immediateClasses |
protected Set |
immutableClasses |
protected Map |
immutableObj2id |
protected int |
nextId |
protected Map |
obj2id |
protected Set |
obj2serialize |
protected Stack |
obj2serializeStack |
protected OutputStream |
out |
protected static QName |
PROP_NAME |
protected XMLWriter |
writer |
| Constructor and Description |
|---|
ExporterBase(OutputStream s) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
define(Object obj,
Integer id) |
protected void |
defineImmediate(Object obj,
Integer id) |
protected abstract void |
failUnsupportedClass(Class klass) |
protected abstract QName |
getContainerName() |
protected QName |
getDefineImmediateObjectName() |
protected QName |
getDefineObjectName() |
protected int |
getId(Object obj) |
protected String |
getImmediateObjectValue(Object obj) |
protected QName |
getPropertyName() |
protected String |
getVersion() |
protected void |
initialize() |
protected void |
internalDoExport(Object root) |
protected boolean |
isImmediate(Object obj) |
protected boolean |
isImmutable(Object obj) |
protected Integer |
newId() |
protected void |
property(String name,
Object subject,
Object object) |
protected void |
visit(Object obj) |
protected OutputStream out
protected XMLWriter writer
protected Map obj2id
protected Map immutableObj2id
protected int nextId
protected Set obj2serialize
protected Stack obj2serializeStack
protected Set immediateClasses
protected Set immutableClasses
protected static final QName DEF_OBJ_NAME
protected static final QName DEF_IMM_OBJ_NAME
protected static final QName PROP_NAME
protected static final String ATTR_VERSION
protected static final String ATTR_ID
protected static final String ATTR_NAME
protected static final String ATTR_TYPE
protected static final String ATTR_VALUE
protected static final String ATTR_SUBJECT
public ExporterBase(OutputStream s)
protected void initialize()
protected void internalDoExport(Object root)
protected void visit(Object obj)
protected boolean isImmediate(Object obj)
protected boolean isImmutable(Object obj)
protected int getId(Object obj)
protected Integer newId()
protected abstract QName getContainerName()
protected String getVersion()
protected QName getDefineObjectName()
protected QName getDefineImmediateObjectName()
protected QName getPropertyName()
protected abstract void failUnsupportedClass(Class klass)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.