|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.HyphenatedFieldNameCodec
public class HyphenatedFieldNameCodec
Constructor Summary | |
---|---|
HyphenatedFieldNameCodec()
|
Method Summary | |
---|---|
java.lang.String |
decodeFieldName(java.lang.String name)
Determine an Object field name from the name of an XML-RPC struct member. |
java.lang.String |
encodeFieldName(java.lang.String name)
Determine the name of an XML-RPC struct member from an Object field name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HyphenatedFieldNameCodec()
Method Detail |
---|
public java.lang.String encodeFieldName(java.lang.String name)
The default implementation splits the name on uppercase characters, converts the elements in the resulting list to lowercase and joins the resulting list using the '-' character.
encodeFieldName
in interface FieldNameCodec
encodeFieldName
in interface FieldNameEncoder
name
- The name of the Object field.
public java.lang.String decodeFieldName(java.lang.String name)
The default implementation splits the name on the '-' character and concatenates the elements in the resulting list after converting the first character of all but the first elements to it's uppercase equivalent. All other characters are converted to lowercase.
decodeFieldName
in interface FieldNameCodec
decodeFieldName
in interface FieldNameDecoder
name
- The XML-RPC struct member name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |