BinaryValueType.
See http://www.w3.org/TR/xmlschema-2/#hexBinary for the spec
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public static final HexBinaryType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | _createValue(String lexicalValue, ValidationContext context)
Implements abstract com. |
| protected boolean | checkFormat(String lexicalValue, ValidationContext context)
Implements abstract com. |
| public String | convertToLexicalValue(Object value, SerializationContext
Context information that will be possibly used for the conversion.
Currently, this object is used only by QName, but may be extended
in the future. context)Implements com. |
| public static char | |
| private static int | |
| public static byte[] | |
| public static String | |
| public String | serializeJavaObject(Object value, SerializationContext
The context object is used to obtain information necessary to
serialize the value object. For example, QName type uses the context
to encode the URI into a prefix. context)Implements abstract com. Implements com. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| theInstance | back to summary |
|---|---|
| public static final HexBinaryType theInstance | |
| HexBinaryType | back to summary |
|---|---|
| private HexBinaryType() | |
| _createValue | back to summary |
|---|---|
| public Object _createValue(String lexicalValue, ValidationContext context) Implements abstract com. Doc from com. converts a whitespace-processed lexical value into the corresponding value object | |
| checkFormat | back to summary |
|---|---|
| protected boolean checkFormat(String lexicalValue, ValidationContext context) Implements abstract com. | |
| convertToLexicalValue | back to summary |
|---|---|
| public String convertToLexicalValue(Object value, SerializationContext context) Implements com. Doc from com. converts value object back to the corresponding value in the lexical space. This method does the reverse operation of the createValue method. The returned string is not necessarily the canonical representation. Also note that the implementation may accept invalid values without throwing IllegalArgumentException. To make sure that the result is actually a valid representation, call the isValid method.
Be careful not to confuse this method with
The serializeJavaObject method, which is defined in
the
| |
| encode | back to summary |
|---|---|
| public static char encode(int ch) | |
| hexToBin | back to summary |
|---|---|
| private static int hexToBin(char ch) | |
| load | back to summary |
|---|---|
| public static byte[] load(String s) | |
| save | back to summary |
|---|---|
| public static String save(byte[] data) | |
| serializeJavaObject | back to summary |
|---|---|
| public String serializeJavaObject(Object value, SerializationContext context) Implements abstract com. Implements com. Doc from com. converts a value object back to the lexical representation. This method is a kind of the "reverse" function of the createJavaObject method.
| |