org.eclipse.jpt.jaxb.core.xsd
Class XsdTypeDefinition<A extends org.eclipse.xsd.XSDTypeDefinition>
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.jpt.jaxb.core.xsd.XsdComponent<A>
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_TRANSFORMER
public static final org.eclipse.jpt.common.utility.transformer.Transformer<XsdTypeDefinition,String> NAME_TRANSFORMER
XsdTypeDefinition
protected XsdTypeDefinition(A xsdTypeDefinition)
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)
Copyright (c) 2012 Oracle. All rights reserved.