Class AbstractXmlPartReader
java.lang.Object
com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
- All Implemented Interfaces:
IXmlPartReader
- Direct Known Subclasses:
AbstractChartXmlPartReader,AbstractDataPathReader,AbstractDendrogramXmlPartReader,AbstractFormXmlPartReader,AbstractGanttChartXmlPartReader,AbstractMdXmlPartReader,AbstractPlannerXmlPartReader,AbstractTimeScaleXmlPartReader,AdditionalIndexXmlPartReader,AdjustableBooleanReader,AllowedIncomingShareRequestTypesPartReader,BaseEnumXmlPartReader,BaseValueXmlPartReader,BorderReader,BoundsReader,CaiPanelNameXmlPartReader,CaseReader,ChoiceParameterLinksReader,ChoiceParameterReader,ColorReader,CommandHandlerXmlPartReader,DataSeriesItemPartReader,DateReader,DynamicListCalculatedFieldsPathReader,DynamicListFieldsPathReader,DynamicListParametersPathReader,DynamicListSettingsPathReader,EventHandlerReader,EventHandlerXmlPartReader,FeatureAttributeXmlReader,FeatureReferenceXmlReader,FontReader,FormChartPathReader,FormChoiceParameterLinksReader,FormConditionalAppearancePathReader,FormLinkByTypeReader,FormPlannerPathReader,GeographicalSchemaComponentPartReader,GeographicalSchemaPicturePartReader,GraphicalSchemeItemAddressingAttributeReader,GraphicalSchemeLineReader,GraphicalSchemeLineStyleReader,GraphicalSchemePictureXmlPartReader,LabelAreaPartReader,LayerItemPartReader,LayerObjectPartReader,LegendItemPartReader,LineReader,LineStylePartReader,LinkByTypeReader,LocalStringMapReader,MobileApplicationUrlslPartReader,ObjectSeriesValuePartReader,PointContourPartReader,PointPartReader,PointPropertiesPartReader,PointReader,PrintOptionPartReader,RefPictureReader,RequiredMobileApplicationPermissions8315XmlPartReader,ScheduleDateReader,ScheduleMonthsReader,ScheduleTimeReader,ScheduleWeekDaysReader,SegmentReader,ShapeCoordinateSystemInfoPartReader,SpreadsheetDataPathReader,SpreadSheetDocumentScrollBarXmlPartReader,StandardPeriodXmlPartReader,TrendlinesPartReader,TypeDescriptionXmlPartReader,TypeReductionModeXmlPartReader,UsedMobileApplicationFunctionalitiesXmlPartReader,UuidXmlReader
Abstract implementation for readers of xml logical parts
-
Field Summary
FieldsFields inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlPartReader
XML_PART_READERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetWrongAttributeValueMessage(String value, String path, String attributeName) Generate error message about wrong attribute values in xmlprotected StringGenerate error message about required xml elementvoidread(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, Version version, IXmlReadErrorCollector errorCollector) Read and convert node text content to value in context-featureprotected voidsetRefers(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature, String ref, String attributeName, Version version, IXmlReadErrorCollector errorCollector) Create proxy object in "unresolved:/" scheme and set in modelprotected voidsetValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector) Set value in context-featureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlPartReader
read
-
Field Details
-
xmlReadHelper
-
-
Constructor Details
-
AbstractXmlPartReader
public AbstractXmlPartReader()
-
-
Method Details
-
read
public void read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, Version version, IXmlReadErrorCollector errorCollector) Read and convert node text content to value in context-feature- Parameters:
context- the contextEObject, cannot benullfeature- theEStructuralFeature, cannot benullnode- the sourceIXmlNode, cannot benullversion- the version of importing 1C:Enterprise XML files, cannot benullerrorCollector-IXmlReadErrorCollectorin which will be added error if it occur, cannot benull
-
setValue
protected void setValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector) Set value in context-feature- Parameters:
context-EObjectfeature-EStructuralFeaturevalue-ObjectattributeName- the attribute name, can benullversion- the version of importing 1C:Enterprise XML files, cannot benullerrorCollector-IXmlReadErrorCollectorin which will be added error if it occur, cannot benull- See Also:
-
XmlReadHelper#setValue(EObject, EStructuralFeature, Object, IXmlReadErrorCollector)
-
setRefers
protected void setRefers(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature, String ref, String attributeName, Version version, IXmlReadErrorCollector errorCollector) Create proxy object in "unresolved:/" scheme and set in model- Parameters:
context-EObjectfeature-EReferenceref-StringattributeName- the attribute name, can benullversion- the version of importing 1C:Enterprise XML files, cannot benullerrorCollector-IXmlReadErrorCollectorin which will be added error if it occur, cannot benull- See Also:
-
XmlReadHelper#setRefers(EObject, EReference, String, IXmlReadErrorCollector)
-
getXmlElementRequiredMessage
Generate error message about required xml element- Parameters:
path- position of required xml node in document, cannot benull- Returns:
- the error message, never
null
-
getWrongAttributeValueMessage
Generate error message about wrong attribute values in xml- Parameters:
value- the attribute value, can benullpath- position of xml node in document, cannot benullattributeName- the name of attribute, cannot benull- Returns:
- the error message, never
null
-