Class XdtoSerializer
java.lang.Object
com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializer
com._1c.g5.v8.dt.xdto.model.resource.XdtoSerializer
Special class for serialization and deserialization content of XDTO Package
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionXdtoSerializer(org.eclipse.emf.ecore.resource.Resource resource, String lineSeparator) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObjectdeserialize(InputStream inputStream) Deserializes XDTOPackagebooleanisDefaultValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature) voidserialize(org.eclipse.emf.ecore.EObject root, OutputStream outputStream) Serializes XDTOPackageMethods inherited from class com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializer
convertLineEndings, createAttributeName, decreaceIndent, getNewPrefix, increaseIndent, writeFormatCharacters
-
Field Details
-
XDTO_XML_NAMESPACE
- See Also:
-
XSI_URI
- See Also:
-
-
Constructor Details
-
XdtoSerializer
Constructor- Parameters:
resource- actual resource for deserialize xdto package, can't benulllineSeparator- line separator to use, can't benull
-
-
Method Details
-
deserialize
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 ofPackagehas wrong structure
-
serialize
public void serialize(org.eclipse.emf.ecore.EObject root, OutputStream outputStream) throws XMLStreamException, IOException Serializes XDTOPackage- Parameters:
root- serializing XDTO element -PackageorInnerModel, can't benulloutputStream- 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)
-