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 SummaryFields Modifier and Type Field Description static StringXDTO_XML_NAMESPACEstatic StringXSI_URI- 
Fields inherited from class com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializerABSTRACT, 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 SummaryConstructors Constructor Description XdtoSerializer(org.eclipse.emf.ecore.resource.Resource resource, String lineSeparator)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 XDTOPackage- 
Methods inherited from class com._1c.g5.v8.dt.xdto.model.resource.AbstractXdtoSerializerconvertLineEndings, createAttributeName, decreaceIndent, getNewPrefix, increaseIndent, writeFormatCharacters
 
- 
 
- 
- 
- 
Field Detail- 
XDTO_XML_NAMESPACEpublic static final String XDTO_XML_NAMESPACE - See Also:
- Constant Field Values
 
 - 
XSI_URIpublic static final String XSI_URI - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
XdtoSerializerpublic XdtoSerializer(org.eclipse.emf.ecore.resource.Resource resource, String lineSeparator)Constructor- Parameters:
- resource- actual resource for deserialize xdto package, can't be- null
- lineSeparator- line separator to use, can't be- null
 
 
- 
 - 
Method Detail- 
deserializepublic org.eclipse.emf.ecore.EObject deserialize(InputStream inputStream) throws XMLStreamException Deserializes XDTOPackage- Parameters:
- inputStream- stream contains content of- Package, can't be- null
- Returns:
- deserialized Package, nevernull
- Throws:
- XMLStreamException- if error in xml was occurred
- XdtoSerializerException- if content of- Packagehas wrong structure
 
 - 
serializepublic void serialize(org.eclipse.emf.ecore.EObject root, OutputStream outputStream) throws XMLStreamException, IOExceptionSerializes XDTOPackage- Parameters:
- root- serializing XDTO element -- Packageor- InnerModel, can't be- null
- outputStream- stream for writing content of the- Package, can't be- null
- Throws:
- XMLStreamException- if error in xml was occurred
- IOException- if error in I/O was occurred
 
 - 
isDefaultValuepublic boolean isDefaultValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
 
- 
 
-