public class mxCellCodec extends mxObjectCodec
| Constructor and Description |
|---|
mxCellCodec()
Constructs a new cell codec.
|
mxCellCodec(Object template)
Constructs a new cell codec for the given template.
|
mxCellCodec(Object template,
String[] exclude,
String[] idrefs,
Map<String,String> mapping)
Constructs a new cell codec for the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
afterEncode(mxCodec enc,
Object obj,
Node node)
Encodes an mxCell and wraps the XML up inside the
XML of the user object (inversion).
|
Node |
beforeDecode(mxCodec dec,
Node node,
Object obj)
Decodes an mxCell and uses the enclosing XML node as
the user object for the cell (inversion).
|
boolean |
isExcluded(Object obj,
String attr,
Object value,
boolean write)
Excludes user objects that are XML nodes.
|
addObjectValue, afterDecode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttributepublic mxCellCodec()
public mxCellCodec(Object template)
public boolean isExcluded(Object obj, String attr, Object value, boolean write)
isExcluded in class mxObjectCodecobj - Object instance that contains the field.attr - Fieldname of the field.value - Value of the field.write - Boolean indicating if the field is being encoded or
decoded. write is true if the field is being encoded, else it is
being decoded.public Node afterEncode(mxCodec enc, Object obj, Node node)
afterEncode in class mxObjectCodecenc - Codec that controls the encoding process.obj - Object to be encoded.node - XML node that represents the default encoding.public Node beforeDecode(mxCodec dec, Node node, Object obj)
beforeDecode in class mxObjectCodecdec - Codec that controls the decoding process.node - XML node to be decoded.obj - Object to encode the node into.Copyright (c) 2010 Gaudenz Alder. All rights reserved.