Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.xsd
Class XsdTypeDefinition<A extends org.eclipse.xsd.XSDTypeDefinition>

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<A>
All Implemented Interfaces:
Adapter, Adapter.Internal
Direct Known Subclasses:
XsdComplexTypeDefinition, XsdSimpleTypeDefinition

public abstract class XsdTypeDefinition<A extends org.eclipse.xsd.XSDTypeDefinition>
extends XsdComponent<A>

Adds API to XSDTypeDefinition.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.1

Nested Class Summary
static class XsdTypeDefinition.Kind
           
static class XsdTypeDefinition.NameTransformer
           
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
static org.eclipse.jpt.common.utility.transformer.Transformer<XsdTypeDefinition,String> 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
 
Constructor Summary
protected XsdTypeDefinition(A xsdTypeDefinition)
           
 
Method Summary
abstract  XsdAttributeUse getAttribute(String namespace, String name)
           
 Iterable<String> getAttributeNameProposals(String namespace)
           
abstract  Iterable<String> getAttributeNames(String namespace)
           
 XsdTypeDefinition getBaseType()
           
 XsdElementDeclaration getElement(String namespace, String name)
           
abstract  XsdElementDeclaration getElement(String namespace, String name, boolean recurseChildren)
           
 Iterable<String> getElementNameProposals(String namespace)
           
 Iterable getElementNameProposals(String namespace, boolean recurseChildren)
           
abstract  Iterable<String> getElementNames(String namespace, boolean recurseChildren)
           
abstract  XsdTypeDefinition.Kind getKind()
           
 String getName()
           
 A getXSDComponent()
           
abstract  boolean hasTextContent()
           
 boolean matches(String namespace, String name)
           
 boolean typeIsValid(XsdTypeDefinition xsdType, boolean isItemType)
           
 boolean typeIsValid(XsdTypeDefinition xsdType, boolean isItemType, boolean allowExtension, boolean allowRestriction)
           
 
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

NAME_TRANSFORMER

public static final org.eclipse.jpt.common.utility.transformer.Transformer<XsdTypeDefinition,String> NAME_TRANSFORMER
Constructor Detail

XsdTypeDefinition

protected XsdTypeDefinition(A xsdTypeDefinition)
Method Detail

getXSDComponent

public A getXSDComponent()
Overrides:
getXSDComponent in class XsdComponent<A extends org.eclipse.xsd.XSDTypeDefinition>

getKind

public abstract XsdTypeDefinition.Kind getKind()

getName

public String getName()

hasTextContent

public abstract boolean hasTextContent()

matches

public boolean matches(String namespace,
                       String name)

typeIsValid

public boolean typeIsValid(XsdTypeDefinition xsdType,
                           boolean isItemType)

typeIsValid

public boolean typeIsValid(XsdTypeDefinition xsdType,
                           boolean isItemType,
                           boolean allowExtension,
                           boolean allowRestriction)

getBaseType

public XsdTypeDefinition getBaseType()

getAttribute

public abstract XsdAttributeUse getAttribute(String namespace,
                                             String name)

getAttributeNameProposals

public Iterable<String> getAttributeNameProposals(String namespace)

getAttributeNames

public abstract Iterable<String> getAttributeNames(String namespace)

getElement

public XsdElementDeclaration getElement(String namespace,
                                        String name)

getElement

public abstract XsdElementDeclaration getElement(String namespace,
                                                 String name,
                                                 boolean recurseChildren)

getElementNameProposals

public Iterable<String> getElementNameProposals(String namespace)

getElementNameProposals

public Iterable getElementNameProposals(String namespace,
                                        boolean recurseChildren)

getElementNames

public abstract Iterable<String> getElementNames(String namespace,
                                                 boolean recurseChildren)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.