org.eclipse.xsd.provider
Class XSDParticleItemProvider

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.XSDComplexTypeContentItemProvider
                      extended byorg.eclipse.xsd.provider.XSDParticleItemProvider

public class XSDParticleItemProvider
extends XSDComplexTypeContentItemProvider

This is the item provider adpater for a XSDParticle 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
XSDParticleItemProvider(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)
          This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an AddCommand, RemoveCommand or MoveCommand in createCommand(java.lang.Object, EditingDomain, java.lang.Class, CommandParameter).
protected  XSDParticleContent getDelegate(XSDParticle xsdParticle)
           
 Object getImage(Object object)
          This returns XSDParticle.gif.
 Collection getNewChildDescriptors(Object object, EditingDomain domain, Object sibling)
          This returns a list of child descriptors based on the particle content, not the particle itself.
 List getPropertyDescriptors(Object object)
          This returns the property descriptors for the adapted class.
 String getText(Object object)
           
 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

XSDParticleItemProvider

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

Method Detail

getDelegate

protected XSDParticleContent getDelegate(XSDParticle xsdParticle)

getPropertyDescriptors

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

Overrides:
getPropertyDescriptors in class XSDComplexTypeContentItemProvider

getChildrenFeatures

public Collection getChildrenFeatures(Object object)
This specifies how to implement getChildren(java.lang.Object) and is used to deduce an appropriate feature for an AddCommand, RemoveCommand or MoveCommand in createCommand(java.lang.Object, EditingDomain, java.lang.Class, CommandParameter).


getChildren

public Collection getChildren(Object object)

hasChildren

public boolean hasChildren(Object object)

getImage

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


getText

public String getText(Object object)

notifyChanged

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

Overrides:
notifyChanged in class XSDComplexTypeContentItemProvider

getNewChildDescriptors

public Collection getNewChildDescriptors(Object object,
                                         EditingDomain domain,
                                         Object sibling)
This returns a list of child descriptors based on the particle content, not the particle 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.