Class XdtoSerializer
- java.lang.Object
-
- com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializer
-
- com._1c.g5.v8.dt.xdto.model.resource.XdtoSerializer
-
public class XdtoSerializer extends AbstractXdtoSerializer
Special class for serialization and deserialization content of XDTO Package
-
-
Field Summary
Fields Modifier and Type Field Description static String
XDTO_XML_NAMESPACE
static String
XSI_URI
-
Fields inherited from class com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializer
ABSTRACT, BASE, DEFAULT, ENCODING, ENUMERATION, FIXED, FORM, FRACTION_DIGITS, IMPORT, ITEM_TYPE, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, MIXED, NAME, NAMESPACE, NILLABLE, OPEN, PATTERN, REF, SCHEMA_LOCATION, TARGET_NAMESPACE, TOTAL_DIGITS, TYPE, WHITESPACE, XMLNS_PREFIX, XS_PREFIX, XS_URI
-
-
Constructor Summary
Constructors Constructor Description XdtoSerializer(org.eclipse.emf.ecore.resource.Resource resource, String lineSeparator)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObject
deserialize(InputStream inputStream)
Deserializes XDTOPackage
boolean
isDefaultValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
void
serialize(org.eclipse.emf.ecore.EObject root, OutputStream outputStream)
Serializes XDTOPackage
-
Methods inherited from class com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializer
convertLineEndings, createAttributeName, decreaceIndent, getNewPrefix, increaseIndent, writeFormatCharacters
-
-
-
-
Field Detail
-
XDTO_XML_NAMESPACE
public static final String XDTO_XML_NAMESPACE
- See Also:
- Constant Field Values
-
XSI_URI
public static final String XSI_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XdtoSerializer
public XdtoSerializer(org.eclipse.emf.ecore.resource.Resource resource, String lineSeparator)
Constructor- Parameters:
resource
- actual resource for deserialize xdto package, can't benull
lineSeparator
- line separator to use, can't benull
-
-
Method Detail
-
deserialize
public org.eclipse.emf.ecore.EObject deserialize(InputStream inputStream) throws XMLStreamException
Deserializes XDTOPackage
- Parameters:
inputStream
- stream contains content ofPackage
, can't benull
- Returns:
- deserialized
Package
, nevernull
- Throws:
XMLStreamException
- if error in xml was occurredXdtoSerializerException
- if content ofPackage
has wrong structure
-
serialize
public void serialize(org.eclipse.emf.ecore.EObject root, OutputStream outputStream) throws XMLStreamException, IOException
Serializes XDTOPackage
- Parameters:
root
- serializing XDTO element -Package
orInnerModel
, can't benull
outputStream
- stream for writing content of thePackage
, can't benull
- Throws:
XMLStreamException
- if error in xml was occurredIOException
- if error in I/O was occurred
-
isDefaultValue
public boolean isDefaultValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
-
-