Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.resource.java
Interface XmlNsAnnotation

All Superinterfaces:
Annotation, JavaResourceModel, Model, NestableAnnotation

public interface XmlNsAnnotation
extends NestableAnnotation

Corresponds to the JAXB annotation javax.xml.bind.annotation.XmlNs 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.

Since:
3.0

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 NAMESPACE_URI_PROPERTY
           
static String PREFIX_PROPERTY
           
 
Fields inherited from interface org.eclipse.jpt.common.core.resource.java.JavaResourceModel
FILE_TRANSFORMER
 
Method Summary
 String getNamespaceURI()
          Corresponds to the 'namespaceURI' element of the XmlNs annotation.
 TextRange getNamespaceURITextRange()
          Return the TextRange for the 'namespaceURI' element.
 String getPrefix()
          Corresponds to the 'prefix' element of the XmlNs annotation.
 TextRange getPrefixTextRange()
          Return the TextRange for the 'prefix' element.
 boolean namespaceURITouches(int pos)
          Return whether the specified position touches the 'namespaceURI' element.
 boolean prefixTouches(int pos)
          Return whether the specified position touches the 'prefix' element.
 void setNamespaceURI(String namespaceURI)
          Corresponds to the 'namespaceURI' element of the XmlNs annotation.
 void setPrefix(String prefix)
          Corresponds to the 'prefix' element of the XmlNs annotation.
 
Methods inherited from interface org.eclipse.jpt.common.core.resource.java.NestableAnnotation
moveAnnotation
 
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

NAMESPACE_URI_PROPERTY

static final String NAMESPACE_URI_PROPERTY
See Also:
Constant Field Values

PREFIX_PROPERTY

static final String PREFIX_PROPERTY
See Also:
Constant Field Values
Method Detail

getNamespaceURI

String getNamespaceURI()
Corresponds to the 'namespaceURI' element of the XmlNs annotation. Return null if the element does not exist in Java.


setNamespaceURI

void setNamespaceURI(String namespaceURI)
Corresponds to the 'namespaceURI' element of the XmlNs annotation. Set to null to remove the element.


getNamespaceURITextRange

TextRange getNamespaceURITextRange()
Return the TextRange for the 'namespaceURI' element. If the element does not exist return the TextRange for the XmlNs annotation.


namespaceURITouches

boolean namespaceURITouches(int pos)
Return whether the specified position touches the 'namespaceURI' element. Return false if the element does not exist.


getPrefix

String getPrefix()
Corresponds to the 'prefix' element of the XmlNs annotation. Return null if the element does not exist in Java.


setPrefix

void setPrefix(String prefix)
Corresponds to the 'prefix' element of the XmlNs annotation. Set to null to remove the element.


getPrefixTextRange

TextRange getPrefixTextRange()
Return the TextRange for the 'prefix' element. If the element does not exist return the TextRange for the XmlNs annotation.


prefixTouches

boolean prefixTouches(int pos)
Return whether the specified position touches the 'prefix' element. Return false if the element does not exist.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.