|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.its.process.re.XLIFFReader.XLIFF2ITSMapperService
public static class XLIFFReader.XLIFF2ITSMapperService
XLIFF to ITS Mapper Class. This service class provides a bunch of method to detect ITS annotated content in an XLIFF File.
Field Summary | |
---|---|
(package private) static java.lang.String |
prefixExt
the 'extended' xliff its prefix |
(package private) static java.lang.String |
prefixNor
the 'normal' its prefix |
Constructor Summary | |
---|---|
XLIFFReader.XLIFF2ITSMapperService()
|
Method Summary | |
---|---|
static java.util.Map<ItsAttributes,java.util.List<java.lang.String>> |
convert(ItsTree<Element> t,
ItsAttributes.DataCategories dc)
Returns a mapping for the respective data category and the XLIFF mapping The mapping returned by this method refers to this document: http://www.w3.org/International/its/wiki/XLIFF_1.2_Mapping#Localization_Note |
static ItsAttributes.DataCategories |
detect(ItsTree<Element> t)
Tries to detect a certain data category |
static boolean |
isLocFilter(ItsTree<Element> t)
Returns true, if subtree elements head is a localization filter |
static boolean |
isLocNote(ItsTree<Element> t)
Returns true, if subtree elements head is a localization note |
static boolean |
isTerminology(ItsTree<Element> t)
Returns true, if subtree elements head is a term |
static boolean |
isTranslate(ItsTree<Element> t)
Returns true, if subtree elements head is a translate dc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String prefixExt
static final java.lang.String prefixNor
Constructor Detail |
---|
public XLIFFReader.XLIFF2ITSMapperService()
Method Detail |
---|
public static boolean isLocNote(ItsTree<Element> t)
t
- the subtree
public static boolean isTranslate(ItsTree<Element> t)
t
- the subtree
public static boolean isLocFilter(ItsTree<Element> t)
t
- the subtree
public static boolean isTerminology(ItsTree<Element> t)
t
- the subtree
public static ItsAttributes.DataCategories detect(ItsTree<Element> t)
t
- the tree, that possibly contains an ITS data category
public static java.util.Map<ItsAttributes,java.util.List<java.lang.String>> convert(ItsTree<Element> t, ItsAttributes.DataCategories dc)
http://www.w3.org/International/its/wiki/XLIFF_1.2_Mapping#Localization_Note
t
- the current its annotated tree element to convertdc
- the infered data category
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |