Class AssociationConverter
- java.lang.Object
-
- com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
-
- org.kie.dmn.backend.marshalling.v1_2.xstream.DMNBaseConverter
-
- org.kie.dmn.backend.marshalling.v1_2.xstream.DMNModelInstrumentedBaseConverter
-
- org.kie.dmn.backend.marshalling.v1_2.xstream.DMNElementConverter
-
- org.kie.dmn.backend.marshalling.v1_2.xstream.ArtifactConverter
-
- org.kie.dmn.backend.marshalling.v1_2.xstream.AssociationConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
public class AssociationConverter extends ArtifactConverter
-
-
Field Summary
Fields Modifier and Type Field Description static StringASSOCIATION_DIRECTIONstatic StringSOURCE_REFstatic StringTARGET_REF-
Fields inherited from class org.kie.dmn.backend.marshalling.v1_2.xstream.DMNElementConverter
DESCRIPTION, EXTENSION_ELEMENTS, ID, LABEL
-
-
Constructor Summary
Constructors Constructor Description AssociationConverter(com.thoughtworks.xstream.XStream xstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassignAttributes(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, Object parent)protected voidassignChildElement(Object parent, String nodeName, Object child)booleancanConvert(Class clazz)protected org.kie.dmn.model.api.DMNModelInstrumentedBasecreateModelObject()protected voidwriteAttributes(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, Object parent)protected voidwriteChildren(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context, Object parent)-
Methods inherited from class org.kie.dmn.backend.marshalling.v1_2.xstream.DMNBaseConverter
marshal, parseElements, unmarshal, writeChildrenNode, writeChildrenNodeAsValue
-
-
-
-
Field Detail
-
TARGET_REF
public static final String TARGET_REF
- See Also:
- Constant Field Values
-
SOURCE_REF
public static final String SOURCE_REF
- See Also:
- Constant Field Values
-
ASSOCIATION_DIRECTION
public static final String ASSOCIATION_DIRECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
createModelObject
protected org.kie.dmn.model.api.DMNModelInstrumentedBase createModelObject()
- Specified by:
createModelObjectin classDMNBaseConverter
-
canConvert
public boolean canConvert(Class clazz)
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher- Specified by:
canConvertin classcom.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
-
assignChildElement
protected void assignChildElement(Object parent, String nodeName, Object child)
- Overrides:
assignChildElementin classDMNElementConverter
-
assignAttributes
protected void assignAttributes(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, Object parent)- Overrides:
assignAttributesin classDMNElementConverter
-
writeChildren
protected void writeChildren(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context, Object parent)- Overrides:
writeChildrenin classDMNElementConverter
-
writeAttributes
protected void writeAttributes(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, Object parent)- Overrides:
writeAttributesin classDMNElementConverter
-
-