Class mxStylesheetCodec
java.lang.Object
com.mxgraph.io.mxObjectCodec
com.mxgraph.io.mxStylesheetCodec
Codec for mxStylesheets. This class is created and registered
dynamically at load time and used implicitely via mxCodec
and the mxCodecRegistry.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new model codec.mxStylesheetCodec(Object template) Constructs a new stylesheet codec for the given template.Constructs a new model codec for the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionDecodes the given mxStylesheet.Encodes the given mxStylesheet.protected StringgetStringValue(Map.Entry<String, Object> entry) Returns the string for encoding the given value.Methods inherited from class mxObjectCodec
addObjectValue, afterDecode, afterEncode, beforeDecode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldTemplate, getFieldValue, getFieldValueWithAccessor, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, isReference, processInclude, setFieldValue, setFieldValueWithAccessor, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
-
Constructor Details
-
mxStylesheetCodec
public mxStylesheetCodec()Constructs a new model codec. -
mxStylesheetCodec
Constructs a new stylesheet codec for the given template. -
mxStylesheetCodec
-
-
Method Details
-
encode
Encodes the given mxStylesheet.- Overrides:
encodein classmxObjectCodec- Parameters:
enc- Codec that controls the encoding process.obj- Object to be encoded.- Returns:
- Returns the resulting XML node that represents the given object.
-
getStringValue
-
decode
Decodes the given mxStylesheet.- Overrides:
decodein classmxObjectCodec- Parameters:
dec- Codec that controls the encoding process.node- XML node to be decoded.into- Optional object to encode the node into.- Returns:
- Returns the resulting object that represents the given XML node or the object given to the method as the into parameter.
-