|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectItemProviderAdapter
org.eclipse.xsd.provider.XSDItemProviderAdapter
org.eclipse.xsd.provider.XSDConcreteComponentItemProvider
org.eclipse.xsd.provider.XSDComponentItemProvider
org.eclipse.xsd.provider.XSDNamedComponentItemProvider
org.eclipse.xsd.provider.XSDRedefinableComponentItemProvider
org.eclipse.xsd.provider.XSDTypeDefinitionItemProvider
org.eclipse.xsd.provider.XSDSimpleTypeDefinitionItemProvider
This is the item provider adpater for a XSDSimpleTypeDefinition
object.
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 | |
XSDSimpleTypeDefinitionItemProvider(AdapterFactory adapterFactory)
This constructs an instance from a factory and a notifier. |
Method Summary | |
protected boolean |
canAccomodateFacet(XSDSimpleTypeDefinition s,
XSDConstrainingFacet f)
This tests whether the specified simple type definition, s , can accomodate the given constraining facet,
f , based on its existing facet children. |
protected void |
collectNewChildDescriptors(Collection newChildDescriptors,
Object object)
This adds to the collection of CommandParameter s
describing all of the children that can be created under this object.
|
protected void |
createFinalPropertyDescriptor(Object object)
|
protected void |
createLexicalFinalPropertyDescriptor(Object object)
|
protected String |
formFacetTypeName(Object facetName)
This forms the name for a facet MOF type, from the string (with Object static type) obtained from the collection returned
by XSDSimpleTypeDefinition.getValidFacets() . |
Collection |
getChildrenFeatures(Object object)
This specifies how to implement #getChildren and is used to deduce an appropriate feature for an
AddCommand , RemoveCommand or
MoveCommand in #createCommand . |
Object |
getImage(Object object)
This returns XSDSimpleTypeDefinition.gif. |
List |
getPropertyDescriptors(Object object)
This returns the property descriptors for the adapted class. |
String |
getText(Object object)
|
String |
getText(Object object,
boolean showType)
|
void |
notifyChanged(Notification msg)
This handles notification by calling fireNotifyChanged . |
Methods inherited from class org.eclipse.xsd.provider.XSDNamedComponentItemProvider |
createNamePropertyDescriptor, createTargetNamespacePropertyDescriptor |
Methods inherited from class org.eclipse.xsd.provider.XSDConcreteComponentItemProvider |
createElementPropertyDescriptor, createInitializeCopyCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSDSimpleTypeDefinitionItemProvider(AdapterFactory adapterFactory)
Method Detail |
public List getPropertyDescriptors(Object object)
getPropertyDescriptors
in class XSDNamedComponentItemProvider
protected void createLexicalFinalPropertyDescriptor(Object object)
protected void createFinalPropertyDescriptor(Object object)
public Collection getChildrenFeatures(Object object)
#getChildren
and is used to deduce an appropriate feature for an
AddCommand
, RemoveCommand
or
MoveCommand
in #createCommand
.
public Object getImage(Object object)
public String getText(Object object)
public String getText(Object object, boolean showType)
public void notifyChanged(Notification msg)
fireNotifyChanged
.
notifyChanged
in class XSDNamedComponentItemProvider
protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object)
CommandParameter
s
describing all of the children that can be created under this object.
The allowable simple type definition and facet children depend upon the
variety and (if atomic) the primitive type of this simple type definition,
as well as upon its existing children. For an option to be displayed, but
disabled, CommandParameter
is null
.
protected String formFacetTypeName(Object facetName)
Object
static type) obtained from the collection returned
by XSDSimpleTypeDefinition.getValidFacets()
. The object is
cast to a String
, the first character is capitalized,
"XSD" is prepended, and "Facet" appended.
protected boolean canAccomodateFacet(XSDSimpleTypeDefinition s, XSDConstrainingFacet f)
s
, can accomodate the given constraining facet,
f
, based on its existing facet children.
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |