Package org.eclipse.persistence.jaxb
Class DefaultXMLNameTransformer
- java.lang.Object
-
- org.eclipse.persistence.jaxb.DefaultXMLNameTransformer
-
- All Implemented Interfaces:
XMLNameTransformer
public class DefaultXMLNameTransformer extends java.lang.Object implements XMLNameTransformer
Class called to transform Java names to XML names. Implements the XMLNameTransformer interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultXMLNameTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtransformAttributeName(java.lang.String name)By default do not make changes to attribute namesjava.lang.StringtransformElementName(java.lang.String name)By default do not make changes to element namesjava.lang.StringtransformRootElementName(java.lang.String className)By default convert class names to xml names based the rules defined in the JAXB specificationjava.lang.StringtransformTypeName(java.lang.String className)By default convert class names to xml names based the rules defined in the JAXB specification
-
-
-
Method Detail
-
transformRootElementName
public java.lang.String transformRootElementName(java.lang.String className)
By default convert class names to xml names based the rules defined in the JAXB specification- Specified by:
transformRootElementNamein interfaceXMLNameTransformer- Parameters:
className- - The fully qualified class name as taken from theClass.getName()
-
transformTypeName
public java.lang.String transformTypeName(java.lang.String className)
By default convert class names to xml names based the rules defined in the JAXB specification- Specified by:
transformTypeNamein interfaceXMLNameTransformer- Parameters:
className- - The fully qualified class name as taken from theClass.getName()
-
transformElementName
public java.lang.String transformElementName(java.lang.String name)
By default do not make changes to element names- Specified by:
transformElementNamein interfaceXMLNameTransformer- Parameters:
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"
-
transformAttributeName
public java.lang.String transformAttributeName(java.lang.String name)
By default do not make changes to attribute names- Specified by:
transformAttributeNamein interfaceXMLNameTransformer- Parameters:
name- - attribute name from the class
-
-