org.eclipse.jpt.jaxb.core.context
Interface JaxbClassMapping
- All Superinterfaces:
- IAdaptable, JaxbContextNode, JaxbNode, JaxbTypeMapping, JptResourceTypeReference, Model, XmlAccessOrderHolder, XmlAccessTypeHolder
- All Known Subinterfaces:
- ELClassMapping, JavaClassMapping, OxmJavaType
public interface JaxbClassMapping
- extends JaxbTypeMapping, XmlAccessTypeHolder, XmlAccessOrderHolder
SPECIFIED_FACTORY_CLASS_PROPERTY
static final String SPECIFIED_FACTORY_CLASS_PROPERTY
- See Also:
- Constant Field Values
FACTORY_METHOD_PROPERTY
static final String FACTORY_METHOD_PROPERTY
- See Also:
- Constant Field Values
PROP_ORDER_LIST
static final String PROP_ORDER_LIST
- See Also:
- Constant Field Values
SUPERCLASS_PROPERTY
static final String SUPERCLASS_PROPERTY
- See Also:
- Constant Field Values
SUPER_CLASS_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<JaxbClassMapping,JaxbClassMapping> SUPER_CLASS_TRANSFORMER
ATTRIBUTES_TRANSFORMER
static final org.eclipse.jpt.common.utility.transformer.Transformer<JaxbClassMapping,Iterable<JaxbPersistentAttribute>> ATTRIBUTES_TRANSFORMER
getFactoryClass
String getFactoryClass()
getSpecifiedFactoryClass
String getSpecifiedFactoryClass()
- factory class corresponds to the XmlType annotation factoryClass element
setSpecifiedFactoryClass
void setSpecifiedFactoryClass(String factoryClass)
getFactoryMethod
String getFactoryMethod()
- factory method corresponds to the XmlType annotation factoryMethod element
setFactoryMethod
void setFactoryMethod(String factoryMethod)
getPropOrder
org.eclipse.jpt.common.utility.iterable.ListIterable<String> getPropOrder()
- propOrder corresponds to the XmlType annotation propOrder element
getProp
String getProp(int index)
getPropOrderSize
int getPropOrderSize()
addProp
void addProp(int index,
String prop)
removeProp
void removeProp(int index)
removeProp
void removeProp(String prop)
moveProp
void moveProp(int targetIndex,
int sourceIndex)
getSuperclass
JaxbClassMapping getSuperclass()
getAttributes
Iterable<JaxbPersistentAttribute> getAttributes()
- Return the attributes defined on this class (not its superclass)
getAttributesSize
int getAttributesSize()
getIncludedAttributes
Iterable<JaxbPersistentAttribute> getIncludedAttributes()
- Included attributes come from any direct superclasses that are mapped as @XmlTransient.
(As opposed to inherited attributes, which a class has by way of any mapped superclasses.)
If there is an intervening class that is not transient, then that class will hold any
included attributes from any direct superclass that are mapped as @XmlTransient.
- See Also:
getSuperclass()
getIncludedAttributesSize
int getIncludedAttributesSize()
getAllLocallyDefinedAttributes
Iterable<JaxbPersistentAttribute> getAllLocallyDefinedAttributes()
- Return all attributes that are defined by this class.
This is the combined set of #getAttributes() and #getIncludedAttributes()
getInheritedAttributes
Iterable<JaxbPersistentAttribute> getInheritedAttributes()
- Inherited attributes are any attributes this class mapping has whose source
is a superclass.
Inherited attributes include included attributes.
buildIncludedAttributesContainer
JaxbAttributesContainer buildIncludedAttributesContainer(JaxbClassMapping parent,
JaxbAttributesContainer.Context context)
- Build an included attributes container that process attribute metadata of this class
with the context of the owning class
getXmlIdMapping
JaxbAttributeMapping getXmlIdMapping()
- Return the id attribute mapping for this class mapping, if it has one.
(Will return the first one it finds, if this class has more than one.)
Copyright (c) 2012 Oracle. All rights reserved.