Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.xsd
Class XsdSimpleTypeDefinition

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.jpt.jaxb.core.xsd.XsdComponent<A>
          extended by org.eclipse.jpt.jaxb.core.xsd.XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>
              extended by org.eclipse.jpt.jaxb.core.xsd.XsdSimpleTypeDefinition
All Implemented Interfaces:
Adapter, Adapter.Internal

public class XsdSimpleTypeDefinition
extends XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>


Nested Class Summary
static class XsdSimpleTypeDefinition.XSDEnumerationFacetTransformer
           
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdTypeDefinition
XsdTypeDefinition.Kind, XsdTypeDefinition.NameTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
protected static org.eclipse.jpt.common.utility.transformer.Transformer<org.eclipse.xsd.XSDEnumerationFacet,String> XSD_ENUMERATION_FACET_TRANSFORMER
           
 
Fields inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdTypeDefinition
NAME_TRANSFORMER
 
Fields inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdComponent
xsdComponent
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Method Summary
 XsdAttributeUse getAttribute(String namespace, String name)
           
 Iterable<String> getAttributeNames(String namespace)
           
 XsdElementDeclaration getElement(String namespace, String name, boolean recurseChildren)
           
 Iterable<String> getElementNames(String namespace, boolean recurseChildren)
           
 Iterable<String> getEnumValueProposals()
           
 XsdSimpleTypeDefinition getItemType()
          If the type is of variety LIST, this will return the item type of the list
 XsdTypeDefinition.Kind getKind()
           
 Iterable<XsdSimpleTypeDefinition> getMemberTypes()
          If the type is of variety UNION, this will return the member types of the union
 boolean hasTextContent()
           
 boolean typeIsValid(XsdTypeDefinition xsdType, boolean isItemType, boolean allowExtension, boolean allowRestriction)
           
 
Methods inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdTypeDefinition
getAttributeNameProposals, getBaseType, getElement, getElementNameProposals, getElementNameProposals, getName, getXSDComponent, matches, typeIsValid
 
Methods inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdComponent
isAdapterForType
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_ENUMERATION_FACET_TRANSFORMER

protected static final org.eclipse.jpt.common.utility.transformer.Transformer<org.eclipse.xsd.XSDEnumerationFacet,String> XSD_ENUMERATION_FACET_TRANSFORMER
Method Detail

getKind

public XsdTypeDefinition.Kind getKind()
Specified by:
getKind in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

hasTextContent

public boolean hasTextContent()
Specified by:
hasTextContent in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

typeIsValid

public boolean typeIsValid(XsdTypeDefinition xsdType,
                           boolean isItemType,
                           boolean allowExtension,
                           boolean allowRestriction)
Overrides:
typeIsValid in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

getItemType

public XsdSimpleTypeDefinition getItemType()
If the type is of variety LIST, this will return the item type of the list


getMemberTypes

public Iterable<XsdSimpleTypeDefinition> getMemberTypes()
If the type is of variety UNION, this will return the member types of the union


getAttribute

public XsdAttributeUse getAttribute(String namespace,
                                    String name)
Specified by:
getAttribute in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

getAttributeNames

public Iterable<String> getAttributeNames(String namespace)
Specified by:
getAttributeNames in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

getElement

public XsdElementDeclaration getElement(String namespace,
                                        String name,
                                        boolean recurseChildren)
Specified by:
getElement in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

getElementNames

public Iterable<String> getElementNames(String namespace,
                                        boolean recurseChildren)
Specified by:
getElementNames in class XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>

getEnumValueProposals

public Iterable<String> getEnumValueProposals()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.