Package org.omegat.filters3.xml.openxml
Class OpenXMLDialect
- java.lang.Object
-
- org.omegat.filters3.xml.DefaultXMLDialect
-
- org.omegat.filters3.xml.openxml.OpenXMLDialect
-
- All Implemented Interfaces:
XMLDialect
public class OpenXMLDialect extends DefaultXMLDialect
Dialect of Open XML files.
-
-
Field Summary
-
Fields inherited from interface org.omegat.filters3.xml.XMLDialect
CONSTRAINT_DOCTYPE, CONSTRAINT_DOCTYPE_UNBOXED, CONSTRAINT_PUBLIC_DOCTYPE, CONSTRAINT_PUBLIC_DOCTYPE_UNBOXED, CONSTRAINT_ROOT, CONSTRAINT_ROOT_UNBOXED, CONSTRAINT_SYSTEM_DOCTYPE, CONSTRAINT_SYSTEM_DOCTYPE_UNBOXED, CONSTRAINT_XMLNS, CONSTRAINT_XMLNS_UNBOXED
-
-
Constructor Summary
Constructors Constructor Description OpenXMLDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineDialect(OpenXMLOptions options)
Actually defines the dialect.java.lang.Boolean
validateTranslatableTagAttribute(java.lang.String tag, java.lang.String attribute, Attributes atts)
Returns for a given attribute of a given tag if the attribute should be translated with the given other attributes present.-
Methods inherited from class org.omegat.filters3.xml.DefaultXMLDialect
constructShortcuts, defineConstraint, defineContentBasedTag, defineIntactTag, defineIntactTags, defineOutOfTurnTag, defineOutOfTurnTags, defineParagraphTag, defineParagraphTags, definePreformatTag, definePreformatTags, defineShortcut, defineShortcuts, defineTranslatableAttribute, defineTranslatableAttributes, defineTranslatableTagAttribute, defineTranslatableTagAttributes, defineTranslatableTagsAttribute, getClosingTagRequired, getConstraints, getContentBasedTags, getForceSpacePreserving, getIntactTags, getOutOfTurnTags, getParagraphTags, getPreformatTags, getShortcuts, getTagsAggregationEnabled, getTranslatableAttributes, getTranslatableTagAttributes, handleXMLTag, resolveEntity, setClosingTagRequired, setForceSpacePreserving, setTagsAggregationEnabled, validateContentBasedTag, validateIntactTag, validateParagraphTag, validatePreformatTag, validateTranslatableTag
-
-
-
-
Method Detail
-
defineDialect
public void defineDialect(OpenXMLOptions options)
Actually defines the dialect. It cannot be done during creation, because options are not known at that step.
-
validateTranslatableTagAttribute
public java.lang.Boolean validateTranslatableTagAttribute(java.lang.String tag, java.lang.String attribute, Attributes atts)
Returns for a given attribute of a given tag if the attribute should be translated with the given other attributes present. If the tagAttribute is returned by getTranslatable(Tag)Attributes(), this function is called to further test the attribute within its context. This allows for example the OpenXML filter to not translate the value attribute of Target, except if TargetMode is External- Specified by:
validateTranslatableTagAttribute
in interfaceXMLDialect
- Overrides:
validateTranslatableTagAttribute
in classDefaultXMLDialect
-
-