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
Direct Known Subclasses:
CClassInfo, CClassRef, CElementInfo

abstract class AbstractCElement
extends AbstractCTypeInfoImpl
implements CElement

Partial default implementation of CElement.


Constructor Summary
protected AbstractCElement(Model model, com.sun.xml.xsom.XSComponent source, org.xml.sax.Locator locator, CCustomizations customizations)
           
 
Method Summary
 org.xml.sax.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
 

Constructor Detail

AbstractCElement

protected AbstractCElement(Model model,
                           com.sun.xml.xsom.XSComponent source,
                           org.xml.sax.Locator locator,
                           CCustomizations customizations)
Method Detail

getLocator

public org.xml.sax.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