org.eclipse.xsd.provider
Class XSDAttributeUseItemProvider

java.lang.Object
  extended byItemProviderAdapter
      extended byorg.eclipse.xsd.provider.XSDItemProviderAdapter
          extended byorg.eclipse.xsd.provider.XSDConcreteComponentItemProvider
              extended byorg.eclipse.xsd.provider.XSDComponentItemProvider
                  extended byorg.eclipse.xsd.provider.XSDAttributeUseItemProvider

public class XSDAttributeUseItemProvider
extends XSDComponentItemProvider

This is the item provider adpater for a XSDAttributeUse object.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
XSDItemProviderAdapter.ItemPropertyDescriptorWithDefault
 
Field Summary
 
Fields inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
itemDelegator, xsdFactory, xsdPackage
 
Constructor Summary
XSDAttributeUseItemProvider(AdapterFactory adapterFactory)
          This constructs an instance from a factory and a notifier.
 
Method Summary
 Command createCommand(Object object, EditingDomain domain, Class commandClass, CommandParameter commandParameter)
          This returns Remove and CreateChild commands (at least) that are based on the attributeUse content, not the attributeUse itself.
 Collection getChildren(Object object)
           
 Collection getChildrenFeatures(Object object)
           
protected  XSDAttributeDeclaration getDelegate(XSDAttributeUse xsdAttributeUse)
           
 Object getImage(Object object)
          This returns XSDAttributeUse.gif.
 Collection getNewChildDescriptors(Object object, EditingDomain domain, Object sibling)
          This returns a list of child descriptors based on the attributeUse content, not the attributeUse itself.
 List getPropertyDescriptors(Object object)
          This returns the property descriptors for the adapted class.
 String getText(Object object)
           
 String getText(Object object, boolean showType)
           
 boolean hasChildren(Object object)
           
 void notifyChanged(Notification msg)
          This handles notification by calling fireNotifyChanged.
 
Methods inherited from class org.eclipse.xsd.provider.XSDConcreteComponentItemProvider
createElementPropertyDescriptor, createInitializeCopyCommand
 
Methods inherited from class org.eclipse.xsd.provider.XSDItemProviderAdapter
addModelGroupChildParameters, addSimpleTypeDefinitionChildParameters, createAttributeDeclaration, createAttributeGroupDefinition, createAttributeGroupDefinitionReference, createAttributeUse, createChildParameter, createComplexTypeDefinition, createElementDeclaration, createIdentityConstraintDefinition, createModelGroupDefinition, createNotationDeclaration, createParticle, createSimpleTypeDefinition, getAttributeSiblings, getCreateChildDescription, getCreateChildImage, getCreateChildResult, getCreateChildText, getCreateChildToolTipText, getImageNameQualifier, getNewObjectName, getParent, getParticleOrAttributeUseContent, getTopModelGroup, getTypeText, getTypeTextQualifier, isGlobal, isUniqueAttributeDeclarationName, isUniqueElementDeclarationName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDAttributeUseItemProvider

public XSDAttributeUseItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier.

Method Detail

getDelegate

protected XSDAttributeDeclaration getDelegate(XSDAttributeUse xsdAttributeUse)

getPropertyDescriptors

public List getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class.

Overrides:
getPropertyDescriptors in class XSDComponentItemProvider

getChildrenFeatures

public Collection getChildrenFeatures(Object object)

getChildren

public Collection getChildren(Object object)

hasChildren

public boolean hasChildren(Object object)

getImage

public Object getImage(Object object)
This returns XSDAttributeUse.gif.


getText

public String getText(Object object)

getText

public String getText(Object object,
                      boolean showType)

notifyChanged

public void notifyChanged(Notification msg)
This handles notification by calling fireNotifyChanged.

Overrides:
notifyChanged in class XSDComponentItemProvider

getNewChildDescriptors

public Collection getNewChildDescriptors(Object object,
                                         EditingDomain domain,
                                         Object sibling)
This returns a list of child descriptors based on the attributeUse content, not the attributeUse itself.


createCommand

public Command createCommand(Object object,
                             EditingDomain domain,
                             Class commandClass,
                             CommandParameter commandParameter)
This returns Remove and CreateChild commands (at least) that are based on the attributeUse content, not the attributeUse itself.


Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.