|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jaxb.DefaultXMLNameTransformer
public class DefaultXMLNameTransformer
Class called to transform Java names to XML names. Implements the XMLNameTransformer interface.
Constructor Summary | |
---|---|
DefaultXMLNameTransformer()
|
Method Summary | |
---|---|
java.lang.String |
transformAttributeName(java.lang.String name)
By default do not make changes to attribute names |
java.lang.String |
transformElementName(java.lang.String name)
By default do not make changes to element names |
java.lang.String |
transformRootElementName(java.lang.String className)
By default convert class names to xml names based the rules defined in the JAXB specification |
java.lang.String |
transformTypeName(java.lang.String className)
By default convert class names to xml names based the rules defined in the JAXB specification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultXMLNameTransformer()
Method Detail |
---|
public java.lang.String transformRootElementName(java.lang.String className)
transformRootElementName
in interface XMLNameTransformer
className
- - The fully qualified class name as taken from theClass.getName()public java.lang.String transformTypeName(java.lang.String className)
transformTypeName
in interface XMLNameTransformer
className
- - The fully qualified class name as taken from theClass.getName()public java.lang.String transformElementName(java.lang.String name)
transformElementName
in interface XMLNameTransformer
name
- - unmodified field name or if this was from a getter or setter method
the "get" or "set" will be automatically removed and the first letter will be made lowercase
Example: if the method getFirstName was annotated with @XmlElement the name passed in to this method would be "firstName"public java.lang.String transformAttributeName(java.lang.String name)
transformAttributeName
in interface XMLNameTransformer
name
- - attribute name from the class
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |