|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.test.api.util.ISO9075
public class ISO9075
Implements the encode and decode routines as specified for XML name to SQL
identifier conversion in ISO 9075-14:2003.
If a character c
is not valid at a certain position in an XML 1.0
NCName it is encoded in the form: '_x' + hexValueOf(c) + '_'.
Method Summary | |
---|---|
static java.lang.String |
decode(java.lang.String name)
Decodes the name . |
static java.lang.String |
encode(java.lang.String name)
Encodes name as specified in ISO 9075. |
static java.lang.String |
encodePath(java.lang.String path)
Encodes path as specified in ISO 9075. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String encode(java.lang.String name)
name
as specified in ISO 9075.
name
- the String
to encode.
String
or name
if it does
not need encoding.public static java.lang.String encodePath(java.lang.String path)
path
as specified in ISO 9075. Please note that
the character '[
' is not encoded but rather interpreted as
the start of an index in a path segment.
path
- the String
to encode.
String
.public static java.lang.String decode(java.lang.String name)
name
.
name
- the String
to decode.
String
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |