Dali Provisional API
Release 3.2

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

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.XsdFeature<org.eclipse.xsd.XSDElementDeclaration>
              extended by org.eclipse.jpt.jaxb.core.xsd.XsdElementDeclaration
All Implemented Interfaces:
Adapter, Adapter.Internal

public class XsdElementDeclaration
extends XsdFeature<org.eclipse.xsd.XSDElementDeclaration>

Adds API to XSDElementDeclaration.

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
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdFeature
XsdFeature.NameTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdFeature
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
 XsdElementDeclaration getElement(String namespace, String name)
           
 Iterable<String> getElementNameProposals(String namespace)
           
 XsdTypeDefinition getType()
           
 org.eclipse.xsd.XSDElementDeclaration getXSDElementDeclaration()
           
 boolean typeIsValid(XsdTypeDefinition xsdType, boolean isItemType)
          Return whether the given schema type is valid within the feature
 
Methods inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdFeature
getName, getXSDFeature
 
Methods inherited from class org.eclipse.jpt.jaxb.core.xsd.XsdComponent
getXSDComponent, 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
 

Method Detail

getXSDElementDeclaration

public org.eclipse.xsd.XSDElementDeclaration getXSDElementDeclaration()

getType

public XsdTypeDefinition getType()
Specified by:
getType in class XsdFeature<org.eclipse.xsd.XSDElementDeclaration>

typeIsValid

public boolean typeIsValid(XsdTypeDefinition xsdType,
                           boolean isItemType)
Description copied from class: XsdFeature
Return whether the given schema type is valid within the feature

Specified by:
typeIsValid in class XsdFeature<org.eclipse.xsd.XSDElementDeclaration>
isItemType - determines whether the xsdType should instead be treated as an item type within a list

getElement

public XsdElementDeclaration getElement(String namespace,
                                        String name)

getElementNameProposals

public Iterable<String> getElementNameProposals(String namespace)

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.