Package org.eclipse.persistence.oxm
Interface XMLNameTransformer
- All Known Implementing Classes:
DefaultXMLNameTransformer
public interface XMLNameTransformer
Interface used when converting from XML to Java names.
-
Method Summary
Modifier and TypeMethodDescriptiontransformAttributeName
(String name) Method called when creating an attribute from a Java fieldtransformElementName
(String name) Method called when creating an element from a Java field or methodMethod called when creating a simpletype or complextype from a classtransformTypeName
(String name) Method called when creating a simpletype or complextype from a class
-
Method Details
-
transformTypeName
Method called when creating a simpletype or complextype from a class- Parameters:
name
- - The fully qualified class name as taken from theClass.getName()
-
transformElementName
Method called when creating an element from a Java field or method- 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
Method called when creating an attribute from a Java field- Parameters:
name
- - attribute name from the class
-
transformRootElementName
Method called when creating a simpletype or complextype from a class- Parameters:
name
- - The fully qualified class name as taken from theClass.getName()
-