com.sun.tools.xjc.model
Class AbstractCElement

java.lang.Object
  extended by com.sun.tools.xjc.model.AbstractCTypeInfoImpl
      extended by com.sun.tools.xjc.model.AbstractCElement
All Implemented Interfaces:
CCustomizable, CElement, CTypeInfo, Locatable, Element<NType,NClass>, TypeInfo<NType,NClass>
Direct Known Subclasses:
CClassInfo, CClassRef, CElementInfo

abstract class AbstractCElement
extends AbstractCTypeInfoImpl
implements CElement

Partial default implementation of CElement.


Constructor Summary
protected AbstractCElement(Model model, XSComponent source, Locator locator, CCustomizations customizations)
           
 
Method Summary
 Locator getLocator()
          Gets the source location in the schema from which this model component is created.
 boolean isAbstract()
          Returns true iff this element is an abstract element.
 void setAbstract()
          Marks this element as an abstract element.
 
Methods inherited from class com.sun.tools.xjc.model.AbstractCTypeInfoImpl
canBeReferencedByIDREF, createConstant, getAdapterUse, getCustomizations, getExpectedMimeType, getLocation, getSchemaComponent, getUpstream, idUse, isCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tools.xjc.model.CTypeInfo
toType
 
Methods inherited from interface com.sun.tools.xjc.model.CCustomizable
getCustomizations, getSchemaComponent
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.Element
getElementName, getScope, getSubstitutionHead
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstream
 

Constructor Detail

AbstractCElement

protected AbstractCElement(Model model,
                           XSComponent source,
                           Locator locator,
                           CCustomizations customizations)
Method Detail

getLocator

public Locator getLocator()
Description copied from interface: CCustomizable
Gets the source location in the schema from which this model component is created.

Specified by:
getLocator in interface CCustomizable
Returns:
never null.

isAbstract

public boolean isAbstract()
Description copied from interface: CElement
Returns true iff this element is an abstract element.

Specified by:
isAbstract in interface CElement

setAbstract

public void setAbstract()
Description copied from interface: CElement
Marks this element as an abstract element.

Specified by:
setAbstract in interface CElement