Class FontReader
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
-
- com._1c.g5.v8.dt.import_.xml.reader.part.FontReader
-
- All Implemented Interfaces:
IXmlPartReader
public class FontReader extends AbstractXmlPartReader
Font
XML reader.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
xmlReadHelper
-
Fields inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlPartReader
XML_PART_READERS
-
-
Constructor Summary
Constructors Constructor Description FontReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.protected Font
readFont(IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Reads font value.-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
getWrongAttributeValueMessage, getXmlElementRequiredMessage, read, setRefers, setValue
-
-
-
-
Method Detail
-
read
public void read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Description copied from interface:IXmlPartReader
Read and convert node named attribute content to value in context-feature.- Parameters:
context
- the contextEObject
, cannot benull
feature
- theEStructuralFeature
, cannot benull
node
- the sourceIXmlNode
, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeversion
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors
-
readFont
protected Font readFont(IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Reads font value.- Parameters:
node
- the font node, cannot benull
attributeName
- the attribute name, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- the error collector, cannot benull
- Returns:
- the font, can be
null
-
-