Uses of Class
net.sf.okapi.common.resource.Code
-
Packages that use Code Package Description net.sf.okapi.common.annotation Classes to implement and manage annotations.net.sf.okapi.common.filters Interfaces and base classes to implement filtersnet.sf.okapi.common.filterwriter Interfaces and classes to allow the output of a document in its original format.net.sf.okapi.common.resource Interfaces and classes that represent the parsed resources attached to the events sent by a filter.net.sf.okapi.common.skeleton Interfaces and classes for the skeleton objects.net.sf.okapi.core.simplifierrules net.sf.okapi.filters.abstractmarkup net.sf.okapi.filters.icml net.sf.okapi.filters.markdown net.sf.okapi.filters.xini net.sf.okapi.filters.xliff net.sf.okapi.filters.xliff2.util net.sf.okapi.lib.verification -
-
Uses of Code in net.sf.okapi.common.annotation
Methods in net.sf.okapi.common.annotation that return types with arguments of type Code Modifier and Type Method Description List<Code>IssueAnnotation. getCodesAsList()Methods in net.sf.okapi.common.annotation with parameters of type Code Modifier and Type Method Description static voidGenericAnnotation. addAnnotation(Code code, GenericAnnotation ann)Adds an annotation to an inline code.static voidGenericAnnotations. addAnnotations(Code code, GenericAnnotations newSet)Adds a set of annotations to a given inline code.Method parameters in net.sf.okapi.common.annotation with type arguments of type Code Modifier and Type Method Description voidIssueAnnotation. setCodes(List<Code> codes)Constructor parameters in net.sf.okapi.common.annotation with type arguments of type Code Constructor Description IssueAnnotation(IssueType issueType, String comment, double severity, String segId, int srcStart, int srcEnd, int trgStart, int trgEnd, List<Code> codes) -
Uses of Code in net.sf.okapi.common.filters
Methods in net.sf.okapi.common.filters that return Code Modifier and Type Method Description CodeSubFilter. createRefCode()CodeEventBuilder. getCurrentCode()Get the currentCode.CodeEventBuilder. peekMostRecentCode()Peek at the most recently createdStartGroup.Methods in net.sf.okapi.common.filters with parameters of type Code Modifier and Type Method Description voidEventBuilder. addToTextUnit(Code code)voidEventBuilder. addToTextUnit(Code code, boolean endCodeNow)voidEventBuilder. addToTextUnit(Code code, boolean endCodeNow, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)voidEventBuilder. addToTextUnit(Code code, boolean endCodeNow, LocaleId locale, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders)voidEventBuilder. startCode(Code code) -
Uses of Code in net.sf.okapi.common.filterwriter
Methods in net.sf.okapi.common.filterwriter that return types with arguments of type Code Modifier and Type Method Description List<Code>XLIFFContent. getCodes()Constructor parameters in net.sf.okapi.common.filterwriter with type arguments of type Code Constructor Description XLIFFContent(String codedText, List<Code> codes, XLIFFContent innerContent, CharsetEncoder chsEnc, List<GenericAnnotations> standoff, ITSContent itsCont) -
Uses of Code in net.sf.okapi.common.resource
Fields in net.sf.okapi.common.resource with type parameters of type Code Modifier and Type Field Description protected List<Code>TextFragment. codesList of the inline codes for this fragment.Methods in net.sf.okapi.common.resource that return Code Modifier and Type Method Description CodeTextFragment. append(TextFragment.TagType tagType, String type, String data)Appends a new code to the text.CodeTextFragment. append(TextFragment.TagType tagType, String type, String data, int id)Appends a new code to the text, when the code has a defined identifier.CodeTextFragment. append(TextFragment.TagType tagType, String type, InlineAnnotation annotation)Appends an annotation-type code to this text.CodeCode. clone()Clone the code.CodeTextFragment. getCode(char indexAsChar)Gets the code for a given index formatted as character (the second special character in a marker in a coded text string).CodeTextFragment. getCode(int index)Gets the code for a given index.CodeTextFragment. getCode(Code fc)Finds the first code with a given ID and tagType in this fragment, or null if there is no such code.CodeTextFragment. getLastCode()Return the last code appended to this fragment, or null if there are no codes.Methods in net.sf.okapi.common.resource that return types with arguments of type Code Modifier and Type Method Description List<Code>TextFragment. getClonedCodes()Gets a list of the copy of the codes for this fragment.List<Code>TextFragment. getCodes()Gets the list of all codes for the fragment.List<Code>TextFragment. getCodes(int start, int end)Gets a copy of the list of the codes that are within a given section of coded text.static List<Code>Code. stringToCodes(String data)Helper method to convert a storage string into a list of codes.Methods in net.sf.okapi.common.resource with parameters of type Code Modifier and Type Method Description TextFragmentTextFragment. append(Code code)Appends an existing code to this fragment.intCodeComparatorOnCloseType. compare(Code c1, Code c2)intCodeComparatorOnData. compare(Code c1, Code c2)intCodeComparatorOnId. compare(Code c1, Code c2)intCodeComparatorOnIsolated. compare(Code c1, Code c2)intCodeComparatorOnTagType. compare(Code c1, Code c2)intCodeComparatorOnType. compare(Code c1, Code c2)static voidTextFragmentUtil. copyCodeMetadata(Code sc, Code tc, boolean forceCopy)static intTextFragmentUtil. findMatch(Code orig, List<Code> codes, int[] fromMatches, Comparator<Code>... cmps)Find a match in codes based on the list ofComparatorCodeTextFragment. getCode(Code fc)Finds the first code with a given ID and tagType in this fragment, or null if there is no such code.static booleanTextUnitUtil. hasExternalRefMarker(Code code)static booleanTextUnitUtil. hasSegEndMarker(Code code)static booleanTextUnitUtil. hasSegOrTpMarker(Code code)static booleanTextUnitUtil. hasSegStartMarker(Code code)static booleanTextUnitUtil. hasTpEndMarker(Code code)static booleanTextUnitUtil. hasTpStartMarker(Code code)voidTextFragment. insert(int offset, Code code)Inserts aCodeobject to this fragment.static booleanTextFragmentUtil. isLeadingCode(Code code, TextFragment source)Determine if the code is at the beginning of theTextFragmentwithout intervening text.voidTextFragment. removeCode(Code code)Remove theCodefrom thios fragmentMethod parameters in net.sf.okapi.common.resource with type arguments of type Code Modifier and Type Method Description voidTextFragment. append(CharSequence text, Function<Code,Code> codeProcessor)Appends a CharSequence.voidTextFragment. append(CharSequence text, Function<Code,Code> codeProcessor)Appends a CharSequence.voidTextFragment. append(String text, Function<Code,Code> codeProcessor)Appends a string.voidTextFragment. append(String text, Function<Code,Code> codeProcessor)Appends a string.static StringCode. codesToString(List<Code> list)Helper method to convert a list of codes into a string.static StringCode. codesToString(List<Code> list, boolean stripOuterData)Helper method to convert a list of codes into a string.static intTextFragmentUtil. findMatch(Code orig, List<Code> codes, int[] fromMatches, Comparator<Code>... cmps)Find a match in codes based on the list ofComparatorstatic intCode. getIndex(List<Code> codes, boolean forClosing, int id)Gets the index in a list of codes for the id of a given code.static booleanCode. sameCodes(List<Code> codes1, List<Code> codes2)Indicates if two codes-storing strings have the same codes or not.voidTextFragment. setCodedText(String newCodedText, List<Code> newCodes)Sets the coded text of the fragment and its corresponding codes.voidTextFragment. setCodedText(String newCodedText, List<Code> newCodes, boolean allowCodeDeletion)Sets the coded text of the fragment and its corresponding codes.protected voidTextFragment. setCodes(List<Code> codes)static StringTextUnitUtil. toText(String text, List<Code> codes)Returns representation of a given coded text with code data enclosed in brackets.Constructor parameters in net.sf.okapi.common.resource with type arguments of type Code Constructor Description TextFragment(String codedText, List<Code> codes)Creates a TextFragment with the content made of a given coded text and a list of codes. -
Uses of Code in net.sf.okapi.common.skeleton
Methods in net.sf.okapi.common.skeleton with parameters of type Code Modifier and Type Method Description protected StringGenericSkeletonWriter. expandCodeContent(Code code, LocaleId locToUse, EncoderContext context)protected booleanGenericSkeletonWriter. isCodeThatDisablesEncoding(Code code) -
Uses of Code in net.sf.okapi.core.simplifierrules
Methods in net.sf.okapi.core.simplifierrules with parameters of type Code Modifier and Type Method Description booleanSimplifierRules. evaluate(String input, Code code)Constructors in net.sf.okapi.core.simplifierrules with parameters of type Code Constructor Description SimplifierRules(String input, Code code) -
Uses of Code in net.sf.okapi.filters.abstractmarkup
Methods in net.sf.okapi.filters.abstractmarkup with parameters of type Code Modifier and Type Method Description protected voidAbstractMarkupFilter. addToTextUnit(Code code)protected voidAbstractMarkupFilter. addToTextUnit(Code code, boolean endCodeNow)protected voidAbstractMarkupFilter. addToTextUnit(Code code, boolean endCodeNow, List<PropertyTextUnitPlaceholder> propertyTextUnitPlaceholders) -
Uses of Code in net.sf.okapi.filters.icml
Methods in net.sf.okapi.filters.icml with parameters of type Code Modifier and Type Method Description voidICMLContext. addCode(Code code) -
Uses of Code in net.sf.okapi.filters.markdown
Methods in net.sf.okapi.filters.markdown with parameters of type Code Modifier and Type Method Description protected booleanMarkdownSkeletonWriter. isCodeThatDisablesEncoding(Code code) -
Uses of Code in net.sf.okapi.filters.xini
Method parameters in net.sf.okapi.filters.xini with type arguments of type Code Modifier and Type Method Description ArrayList<Serializable>InlineCodeTransformer. codesToJAXB(String codedText, List<Code> codes, boolean targetIsRainbowkit)ArrayList<Serializable>InlineCodeTransformer. codesToJAXBForFilter(String codedText, List<Code> codes)ArrayList<Serializable>InlineCodeTransformer. codesToJAXBForTKit(String codedText, List<Code> codes) -
Uses of Code in net.sf.okapi.filters.xliff
Methods in net.sf.okapi.filters.xliff with parameters of type Code Modifier and Type Method Description protected StringXLIFFSkeletonWriter. expandCodeContent(Code code, LocaleId locToUse, EncoderContext context) -
Uses of Code in net.sf.okapi.filters.xliff2.util
Methods in net.sf.okapi.filters.xliff2.util with parameters of type Code Modifier and Type Method Description static voidPropertiesMapper. setCodeProperties(Code okapiCode, CTag xliff2Ctag)Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code Tagstatic voidPropertiesMapper. setCodeProperties(Code okapiCode, MTag xliff2Mtag)Transfers properties from the Okapi Core Code Tag to the XLIFF Toolkit Code Tagstatic voidPropertiesMapper. setCodeProperties(CTag xliff2Ctag, Code okapiCode)Transfers properties from the XLIFF Toolkit Code Tag to the Okapi Core Code Tag.static voidPropertiesMapper. setCodeProperties(MTag xliff2Mtag, Code okapiCode) -
Uses of Code in net.sf.okapi.lib.verification
Methods in net.sf.okapi.lib.verification that return types with arguments of type Code Modifier and Type Method Description List<Code>Issue. getCodes()Method parameters in net.sf.okapi.lib.verification with type arguments of type Code Modifier and Type Method Description voidAbstractChecker. addAnnotation(TextContainer tc, String segId, IssueType issueType, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, List<Code> codes)voidAbstractChecker. addAnnotation(TextContainer tc, String segId, IssueType issueType, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, List<Code> codes, String itsType)voidAbstractChecker. addAnnotationAndReportIssue(IssueType issueType, ITextUnit tu, TextContainer tc, String segId, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, String srcOri, String trgOri, List<Code> codes)voidAbstractChecker. addAnnotationAndReportIssue(IssueType issueType, ITextUnit tu, TextContainer tc, String segId, String comment, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, String srcOri, String trgOri, List<Code> codes, String itsType)voidAbstractChecker. reportIssue(IssueType issueType, ITextUnit tu, String segId, String message, int srcStart, int srcEnd, int trgStart, int trgEnd, double severity, String srcOri, String trgOri, List<Code> codes)voidIssue. setCodes(List<Code> codes)
-