com.sun.star.tooling.DirtyTags
クラス DirtyTagWrapper
java.lang.Object
com.sun.star.tooling.DirtyTags.DirtyTagWrapper
public class DirtyTagWrapper
- extends java.lang.Object
Solves the problem with translating strings from the
Star-Office Help. This Strings contain XML snippets
(that means parts of an xml dokument). I call them 'dirty'
because the start of a tag (<) and the and of an tag (>)
are quoted by a single backslash(\<.....\>). This is done
because the text out of th tags should not contain '<' and '>'
as Entity references (< or >) but as readable signs.
This is for translation purposes.
Because translators get mad while find out the really translatable
parts between all the markup information, the XLIFF Specification
allows to wrap parts of a String that should not be translated by
special tags (, ).
This Class has two static methods that do the wrapping and unwrapping
NOTE: this won't work with not 'dirty' Strings.
|
メソッドの概要 |
static void |
setWrapping(boolean doWrap)
|
static java.lang.String |
unwrapString(java.lang.String checkString)
Unwraps the 'dirty' parts of a String from ept and bpt tags |
static java.lang.String |
wrapString(java.lang.String checkString)
Wrap the dirty parts of a string |
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirtyTagWrapper
public DirtyTagWrapper()
setWrapping
public static void setWrapping(boolean doWrap)
unwrapString
public static java.lang.String unwrapString(java.lang.String checkString)
- Unwraps the 'dirty' parts of a String from ept and bpt tags
- パラメータ:
checkString - The String to unwrap
- 戻り値:
- the unwrapped String
wrapString
public static java.lang.String wrapString(java.lang.String checkString)
throws DirtyTagWrapper.TagWrapperException,
java.io.IOException
- Wrap the dirty parts of a string
- パラメータ:
checkString - The String to check if there are dirty Parts to wrap
- 戻り値:
- A String with wrapped dirty parts
- 例外:
DirtyTagWrapper.TagWrapperException
java.io.IOException
Copyright © 2004 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA