Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.context
Class AbstractQName

java.lang.Object
  extended by org.eclipse.jpt.common.utility.internal.model.AbstractModel
      extended by org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode
          extended by org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode
              extended by org.eclipse.jpt.jaxb.core.context.AbstractQName
All Implemented Interfaces:
IAdaptable, JptResourceTypeReference, Model, JaxbContextNode, JaxbQName, JaxbNode

public abstract class AbstractQName
extends org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode
implements JaxbQName


Nested Class Summary
static interface AbstractQName.ResourceProxy
           
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode
org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode.CollectionContainer<C,R>, org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode.ContextCollectionContainer<C extends JaxbContextNode,R>, org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode.ContextListContainer<C extends JaxbContextNode,R>, org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode.ListContainer<C,R>
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Field Summary
protected  String defaultName
           
protected  String defaultNamespace
           
protected  String name
           
protected  String namespace
           
protected  AbstractQName.ResourceProxy proxy
           
protected  String specifiedName
           
protected  String specifiedNamespace
           
 
Fields inherited from class org.eclipse.jpt.common.utility.internal.model.AbstractModel
changeSupport
 
Fields inherited from interface org.eclipse.jpt.jaxb.core.context.JaxbQName
DEFAULT_NAME_PROPERTY, DEFAULT_NAMESPACE_PROPERTY, NAME_PROPERTY, NAMESPACE_PROPERTY, SPECIFIED_NAME_PROPERTY, SPECIFIED_NAMESPACE_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
RESOURCE_TYPE_TRANSFORMER
 
Constructor Summary
protected AbstractQName(JaxbContextNode parent, AbstractQName.ResourceProxy proxy)
           
 
Method Summary
protected abstract  String buildDefaultName()
           
protected abstract  String buildDefaultNamespace()
           
 Iterable<String> getCompletionProposals(int pos)
          Return the Java code-completion proposals for the specified position in the source code.
 String getDefaultName()
           
 String getDefaultNamespace()
           
protected abstract  JaxbPackage getJaxbPackage()
           
 String getName()
           
protected abstract  Iterable<String> getNameProposals()
           
 String getNamespace()
           
protected abstract  Iterable<String> getNamespaceProposals()
           
 TextRange getNamespaceTextRange()
           
 TextRange getNameTextRange()
           
protected  String getReferencedComponentTypeDescription()
          e.g.
protected  String getResourceName()
           
protected  String getResourceNamespace()
           
 String getSpecifiedName()
           
 String getSpecifiedNamespace()
           
protected  TextRange getTextRange(TextRange textRange)
           
protected  IMessage getUnresolveSchemaComponentMessage()
           
 TextRange getValidationTextRange()
          Return the text range for highlighting errors for this object
protected  XsdSchema getXsdSchema()
           
protected  void setDefaultName_(String newDefaultName)
           
protected  void setDefaultNamespace_(String newDefaultNamespace)
           
protected  void setName_(String newName)
           
protected  void setNamespace_(String newNamespace)
           
protected  void setResourceName(String newName)
           
protected  void setResourceNamespace(String newNamespace)
           
protected  void setSpecifiedName_(String newSpecifiedName)
           
 void setSpecifiedName(String newSpecifiedName)
           
protected  void setSpecifiedNamespace_(String newSpecifiedNamespace)
           
 void setSpecifiedNamespace(String newSpecifiedNamespace)
           
 void synchronizeWithResourceModel()
           
protected  void syncName()
           
protected  void syncNamespace()
           
 void update()
          Update the context model with the content of the JAXB resource model.
protected  void updateName()
           
protected  void updateNamespace()
           
 void validate(List<IMessage> messages, IReporter reporter)
          Adds to the list of current validation messages
protected  void validateName(List<IMessage> messages, IReporter reporter)
           
protected abstract  void validateReference(List<IMessage> messages, IReporter reporter)
           
 
Methods inherited from class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode
buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, getContextRoot, getParent, getResourceType, synchronizeNodesWithResourceModel, updateNodes
 
Methods inherited from class org.eclipse.jpt.jaxb.core.internal.AbstractJaxbNode
addNonUpdateAspectNamesTo, aspectChanged, aspectDoesNotTriggerUpdate, buildChangeSupport, buildChangeSupportListener, checkParent, forbidsParent, getAdapter, getFactory, getJaxbFile, getJaxbProject, getPlatform, getResource, nonUpdateAspectNames, requiresParent, stateChanged
 
Methods inherited from class org.eclipse.jpt.common.utility.internal.model.AbstractModel
addChangeListener, addCollectionChangeListener, addItemsToCollection, addItemsToCollection, addItemsToCollection, addItemsToCollection, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemToCollection, addItemToList, addItemToList, addListChangeListener, addPropertyChangeListener, addStateChangeListener, attributeValueHasChanged, attributeValueHasNotChanged, clearCollection, clearList, clone, fireCollectionChanged, fireCollectionChanged, fireCollectionCleared, fireCollectionCleared, fireItemAdded, fireItemAdded, fireItemMoved, fireItemRemoved, fireItemRemoved, fireItemReplaced, fireItemsAdded, fireItemsAdded, fireItemsAdded, fireItemsAdded, fireItemsMoved, fireItemsMoved, fireItemsRemoved, fireItemsRemoved, fireItemsRemoved, fireItemsRemoved, fireItemsReplaced, fireItemsReplaced, fireListChanged, fireListChanged, fireListCleared, fireListCleared, firePropertyChanged, firePropertyChanged, firePropertyChanged, firePropertyChanged, firePropertyChanged, fireStateChanged, fireStateChanged, getChangeSupport, hasAnyChangeListeners, hasAnyCollectionChangeListeners, hasAnyListChangeListeners, hasAnyPropertyChangeListeners, hasAnyStateChangeListeners, hasNoChangeListeners, hasNoCollectionChangeListeners, hasNoListChangeListeners, hasNoPropertyChangeListeners, hasNoStateChangeListeners, moveItemInList, moveItemInList, moveItemsInList, removeChangeListener, removeCollectionChangeListener, removeItemFromCollection, removeItemFromList, removeItemFromList, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeListChangeListener, removePropertyChangeListener, removeRangeFromList, removeStateChangeListener, replaceItemInList, retainItemsInCollection, retainItemsInCollection, retainItemsInCollection, retainItemsInCollection, retainItemsInList, retainItemsInList, retainItemsInList, retainItemsInList, setItemInList, setItemsInList, setItemsInList, synchronizeCollection, synchronizeCollection, synchronizeCollection, synchronizeList, synchronizeList, synchronizeList, toString, toString, valuesAreDifferent, valuesAreEqual
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.context.JaxbContextNode
getContextRoot
 
Methods inherited from interface org.eclipse.jpt.jaxb.core.JaxbNode
getJaxbProject, getParent, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 

Field Detail

proxy

protected final AbstractQName.ResourceProxy proxy

namespace

protected String namespace

defaultNamespace

protected String defaultNamespace

specifiedNamespace

protected String specifiedNamespace

name

protected String name

defaultName

protected String defaultName

specifiedName

protected String specifiedName
Constructor Detail

AbstractQName

protected AbstractQName(JaxbContextNode parent,
                        AbstractQName.ResourceProxy proxy)
Method Detail

synchronizeWithResourceModel

public void synchronizeWithResourceModel()
Specified by:
synchronizeWithResourceModel in interface JaxbContextNode
Overrides:
synchronizeWithResourceModel in class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode

update

public void update()
Description copied from interface: JaxbContextNode
Update the context model with the content of the JAXB resource model.

Specified by:
update in interface JaxbContextNode
Overrides:
update in class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode

getJaxbPackage

protected abstract JaxbPackage getJaxbPackage()

getXsdSchema

protected final XsdSchema getXsdSchema()

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface JaxbQName

setNamespace_

protected void setNamespace_(String newNamespace)

getDefaultNamespace

public String getDefaultNamespace()
Specified by:
getDefaultNamespace in interface JaxbQName

setDefaultNamespace_

protected void setDefaultNamespace_(String newDefaultNamespace)

getSpecifiedNamespace

public String getSpecifiedNamespace()
Specified by:
getSpecifiedNamespace in interface JaxbQName

setSpecifiedNamespace

public void setSpecifiedNamespace(String newSpecifiedNamespace)
Specified by:
setSpecifiedNamespace in interface JaxbQName

setSpecifiedNamespace_

protected void setSpecifiedNamespace_(String newSpecifiedNamespace)

buildDefaultNamespace

protected abstract String buildDefaultNamespace()

getResourceNamespace

protected String getResourceNamespace()

setResourceNamespace

protected void setResourceNamespace(String newNamespace)

syncNamespace

protected void syncNamespace()

updateNamespace

protected void updateNamespace()

getName

public String getName()
Specified by:
getName in interface JaxbQName

setName_

protected void setName_(String newName)

getDefaultName

public String getDefaultName()
Specified by:
getDefaultName in interface JaxbQName

setDefaultName_

protected void setDefaultName_(String newDefaultName)

getSpecifiedName

public String getSpecifiedName()
Specified by:
getSpecifiedName in interface JaxbQName

setSpecifiedName

public void setSpecifiedName(String newSpecifiedName)
Specified by:
setSpecifiedName in interface JaxbQName

setSpecifiedName_

protected void setSpecifiedName_(String newSpecifiedName)

buildDefaultName

protected abstract String buildDefaultName()

getResourceName

protected String getResourceName()

setResourceName

protected void setResourceName(String newName)

syncName

protected void syncName()

updateName

protected void updateName()

getCompletionProposals

public Iterable<String> getCompletionProposals(int pos)
Description copied from interface: JaxbContextNode
Return the Java code-completion proposals for the specified position in the source code.

Specified by:
getCompletionProposals in interface JaxbContextNode
Overrides:
getCompletionProposals in class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode

getNamespaceProposals

protected abstract Iterable<String> getNamespaceProposals()

getNameProposals

protected abstract Iterable<String> getNameProposals()

getValidationTextRange

public TextRange getValidationTextRange()
Description copied from interface: JaxbContextNode
Return the text range for highlighting errors for this object

Specified by:
getValidationTextRange in interface JaxbContextNode
Overrides:
getValidationTextRange in class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode

getTextRange

protected TextRange getTextRange(TextRange textRange)

getNamespaceTextRange

public TextRange getNamespaceTextRange()
Specified by:
getNamespaceTextRange in interface JaxbQName

getNameTextRange

public TextRange getNameTextRange()
Specified by:
getNameTextRange in interface JaxbQName

getReferencedComponentTypeDescription

protected String getReferencedComponentTypeDescription()
e.g. "XML element"


validate

public void validate(List<IMessage> messages,
                     IReporter reporter)
Description copied from interface: JaxbContextNode
Adds to the list of current validation messages

Specified by:
validate in interface JaxbContextNode
Overrides:
validate in class org.eclipse.jpt.jaxb.core.internal.context.AbstractJaxbContextNode

validateName

protected void validateName(List<IMessage> messages,
                            IReporter reporter)

validateReference

protected abstract void validateReference(List<IMessage> messages,
                                          IReporter reporter)

getUnresolveSchemaComponentMessage

protected IMessage getUnresolveSchemaComponentMessage()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.