Class FormXmlReaderResult
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.XmlReaderResult
-
- com._1c.g5.v8.dt.form.import_.xml.reader.FormXmlReaderResult
-
- All Implemented Interfaces:
IXmlReadErrorCollector
public class FormXmlReaderResult extends XmlReaderResult
Form specifiedXmlReaderResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FormXmlReaderResult.FormXmlExternalContent
External content from form xml
-
Constructor Summary
Constructors Constructor Description FormXmlReaderResult(org.eclipse.emf.ecore.EObject resultObject)
ConstructFormXmlReaderResult
with result object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionContainer(String name, AdditionContainer additionContainer)
Add new addition container name to cachevoid
addAdditionSource(Addition addition, String name, String type)
Add new addition sourcevoid
addExternalContent(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Add new form xml external contentvoid
addExternalContent(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, String content)
Add new form xml external contentvoid
addExternalObject(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EObject eObject)
Add new form xml external objectvoid
attacheAdditionSources()
Attached addition source to addition by source namesForm
getBaseForm()
Returns the base form that was read during form XML read.List<FormXmlReaderResult.FormXmlExternalContent>
getExternalContents()
/**void
setBaseForm(Form baseForm)
Set base form as the part of form read result.-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.reader.XmlReaderResult
addAllErrorsFrom, addError, addError, addError, addUnreadElement, addUnreadElement, addWarning, convertToStatus, convertToStatus, errorResult, errorResult, getErrors, getResultObject, getUnreadFeaturesMap, getUnreadNamesByFeature, getWarnings, hasErrors, hasWarnings
-
-
-
-
Constructor Detail
-
FormXmlReaderResult
public FormXmlReaderResult(org.eclipse.emf.ecore.EObject resultObject)
ConstructFormXmlReaderResult
with result object- Parameters:
resultObject
- the xml exporting result object
-
-
Method Detail
-
addExternalContent
public void addExternalContent(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, String content)
Add new form xml external content- Parameters:
context
- the context object in form, cannot benull
reference
- theEReference
to external context, cannot benull
content
- the xml content, cannot benull
-
addExternalContent
public void addExternalContent(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Add new form xml external content- Parameters:
context
- the context object in formreference
- theEReference
to external context
-
addExternalObject
public void addExternalObject(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EObject eObject)
Add new form xml external object- Parameters:
context
- the context object in formreference
- theEReference
to external contexteObject
- the an external object
-
getExternalContents
public List<FormXmlReaderResult.FormXmlExternalContent> getExternalContents()
/**- Returns:
- the list of
FormXmlReaderResult.FormXmlExternalContent
-
addAdditionSource
public void addAdditionSource(Addition addition, String name, String type) throws ImportException
Add new addition source- Parameters:
addition
- the form element additionname
- the source element nametype
- the addition type- Throws:
ImportException
- if additionIs is not valid
-
addAdditionContainer
public void addAdditionContainer(String name, AdditionContainer additionContainer)
Add new addition container name to cache- Parameters:
name
- the name of addition container elementadditionContainer
- the addition container
-
getBaseForm
public Form getBaseForm()
Returns the base form that was read during form XML read. May returnnull
.- Returns:
- the base form or
null
if none
-
setBaseForm
public void setBaseForm(Form baseForm)
Set base form as the part of form read result.- Parameters:
baseForm
- the base that was read during form XML read, cannot benull
-
attacheAdditionSources
public void attacheAdditionSources()
Attached addition source to addition by source names
-
-