|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface XmlTypeAnnotation
Corresponds to the JAXB annotation javax.xml.bind.annotation.XmlType Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel |
|---|
JavaResourceModel.FileTransformer, JavaResourceModel.Root |
| Field Summary | |
|---|---|
static String |
DEFAULT_FACTORY_CLASS
|
static String[] |
DEFAULT_PROP_ORDER
A single element empty string array should be interpreted as unspecified |
static String |
FACTORY_CLASS_PROPERTY
|
static String |
FACTORY_METHOD_PROPERTY
|
static String |
FULLY_QUALIFIED_FACTORY_CLASS_NAME_PROPERTY
|
static String |
PROP_ORDER_LIST
|
| Fields inherited from interface org.eclipse.jpt.jaxb.core.resource.java.QNameAnnotation |
|---|
NAME_PROPERTY, NAMESPACE_PROPERTY |
| Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel |
|---|
FILE_TRANSFORMER |
| Method Summary | |
|---|---|
void |
addProp(int index,
String prop)
Corresponds to the 'propOrder' element of the XmlType annotation. |
void |
addProp(String prop)
Corresponds to the 'propOrder' element of the XmlType annotation. |
String |
getFactoryClass()
Corresponds to the 'factoryClass' element of the XmlType annotation. |
TextRange |
getFactoryClassTextRange()
Return the TextRange for the 'factoryClass' element. |
String |
getFactoryMethod()
Corresponds to the 'factoryMethod' element of the XmlType annotation. |
TextRange |
getFactoryMethodTextRange()
Return the TextRange for the 'factoryMethod' element. |
String |
getFullyQualifiedFactoryClassName()
Return the fully-qualified factory class name as resolved by the AST's bindings. |
org.eclipse.jpt.common.utility.iterable.ListIterable<String> |
getPropOrder()
Corresponds to the 'propOrder' element of the XmlType annotation. |
int |
getPropOrderSize()
Corresponds to the 'propOrder' element of the XmlType annotation. |
TextRange |
getPropOrderTextRange()
Return the text range of the 'propOrder' element of the XmlType annotation. |
TextRange |
getPropTextRange(int index)
Return the text range of the prop at the specified index |
void |
moveProp(int targetIndex,
int sourceIndex)
Corresponds to the 'propOrder' element of the XmlType annotation. |
boolean |
propOrderTouches(int pos)
Return whether the specified position touches the 'propOrder' element. |
boolean |
propTouches(int index,
int pos)
Return whether the specified position touches the prop at the specified index. |
void |
removeProp(int index)
Corresponds to the 'propOrder' element of the XmlType annotation. |
void |
removeProp(String prop)
Corresponds to the 'propOrder' element of the XmlType annotation. |
void |
setFactoryClass(String factoryClass)
Corresponds to the 'factoryClass' element of the XmlType annotation. |
void |
setFactoryMethod(String factoryMethod)
Corresponds to the 'factoryMethod' element of the XmlType annotation. |
| Methods inherited from interface org.eclipse.jpt.jaxb.core.resource.java.QNameAnnotation |
|---|
getName, getNamespace, getNamespaceTextRange, getNamespaceValidationTextRange, getNameTextRange, getNameValidationTextRange, namespaceTouches, nameTouches, setName, setNamespace |
| Methods inherited from interface org.eclipse.jpt.common.core.resource.java.Annotation |
|---|
getAnnotationName, getAstAnnotation, initialize, initialize, isUnset, newAnnotation, removeAnnotation, synchronizeWith, synchronizeWith |
| Methods inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel |
|---|
getFile, getJavaResourceCompilationUnit, getParent, getRoot, getTextRange |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener |
| Field Detail |
|---|
static final String FACTORY_CLASS_PROPERTY
static final String DEFAULT_FACTORY_CLASS
static final String FULLY_QUALIFIED_FACTORY_CLASS_NAME_PROPERTY
static final String FACTORY_METHOD_PROPERTY
static final String PROP_ORDER_LIST
static final String[] DEFAULT_PROP_ORDER
| Method Detail |
|---|
String getFactoryClass()
@XmlType(name="USAddressType", factoryClass=USAddressFactory.class)
will return "USAddressFactory"
void setFactoryClass(String factoryClass)
TextRange getFactoryClassTextRange()
TextRange for the 'factoryClass' element. If the element
does not exist return the TextRange for the XmlType annotation.
String getFullyQualifiedFactoryClassName()
@XmlType(name="USAddressType", factoryClass=USAddressFactory.class)
will return "model.USAddressFactory" if there is an import for model.USAddressFactory.
String getFactoryMethod()
void setFactoryMethod(String factoryMethod)
TextRange getFactoryMethodTextRange()
TextRange for the 'factoryMethod' element. If the element
does not exist return the TextRange for the XmlType annotation.
org.eclipse.jpt.common.utility.iterable.ListIterable<String> getPropOrder()
int getPropOrderSize()
void addProp(String prop)
void addProp(int index,
String prop)
void moveProp(int targetIndex,
int sourceIndex)
void removeProp(String prop)
void removeProp(int index)
TextRange getPropOrderTextRange()
boolean propOrderTouches(int pos)
TextRange getPropTextRange(int index)
ArrayIndexOutOfBoundsException - if the index is out of range
boolean propTouches(int index,
int pos)
ArrayIndexOutOfBoundsException - if the index is out of range
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||