org.eclipse.jpt.jaxb.core.xsd
Class XsdSimpleTypeDefinition
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<org.eclipse.xsd.XSDSimpleTypeDefinition>
org.eclipse.jpt.jaxb.core.xsd.XsdSimpleTypeDefinition
- All Implemented Interfaces:
- Adapter, Adapter.Internal
public class XsdSimpleTypeDefinition
- extends XsdTypeDefinition<org.eclipse.xsd.XSDSimpleTypeDefinition>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSD_ENUMERATION_FACET_TRANSFORMER
protected static final org.eclipse.jpt.common.utility.transformer.Transformer<org.eclipse.xsd.XSDEnumerationFacet,String> XSD_ENUMERATION_FACET_TRANSFORMER
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()
Copyright (c) 2012 Oracle. All rights reserved.