Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.xsd
Class XsdFeature<A extends org.eclipse.xsd.XSDFeature>

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

public abstract class XsdFeature<A extends org.eclipse.xsd.XSDFeature>
extends XsdComponent<A>


Nested Class Summary
static class XsdFeature.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<XsdFeature,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 XsdFeature(A xsdFeature)
           
 
Method Summary
 String getName()
           
abstract  XsdTypeDefinition getType()
           
 A getXSDFeature()
           
abstract  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.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
 

Field Detail

NAME_TRANSFORMER

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

XsdFeature

protected XsdFeature(A xsdFeature)
Method Detail

getXSDFeature

public A getXSDFeature()

getName

public String getName()

getType

public abstract XsdTypeDefinition getType()

typeIsValid

public abstract boolean typeIsValid(XsdTypeDefinition xsdType,
                                    boolean isItemType)
Return whether the given schema type is valid within the feature

Parameters:
isItemType - determines whether the xsdType should instead be treated as an item type within a list

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.