eu.esdihumboldt.hale.common.instance.orient
Class ONameUtil
java.lang.Object
eu.esdihumboldt.hale.common.instance.orient.ONameUtil
public class ONameUtil
- extends Object
Utilities for name encoding and decoding
- Author:
- Simon Templer
Field Summary |
protected static BitSet |
ONAME
BitSet of safe characters for names in ODocument s. |
Method Summary |
static String |
decodeName(String name)
Decode a name for ODocument fields to its original string
representation. |
static String |
encodeName(String text)
Encode text to a string that is a valid name for ODocument
fields. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONAME
protected static final BitSet ONAME
- BitSet of safe characters for names in
ODocument
s.
ONameUtil
public ONameUtil()
encodeName
public static String encodeName(String text)
- Encode text to a string that is a valid name for
ODocument
fields.
- Parameters:
text
- the text to encode
- Returns:
- the encoded name
decodeName
public static String decodeName(String name)
throws org.apache.commons.codec.DecoderException
- Decode a name for
ODocument
fields to its original string
representation.
- Parameters:
name
- the name to decode
- Returns:
- the decoded text
- Throws:
org.apache.commons.codec.DecoderException
- if decoding the string fails
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d