com.sun.tools.xjc.model
Class AbstractCTypeInfoImpl

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

abstract class AbstractCTypeInfoImpl
extends Object
implements CTypeInfo

Partial implementation of CTypeInfo.

The inheritance of TypeUse by CTypeInfo isn't a normal inheritance (see CTypeInfo for more.) This class implments methods on TypeUse for CTypeInfo.


Constructor Summary
protected AbstractCTypeInfoImpl(Model model, XSComponent source, CCustomizations customizations)
           
 
Method Summary
 boolean canBeReferencedByIDREF()
          Deprecated. why are you calling an unimplemented method?
 com.sun.codemodel.JExpression createConstant(Outline outline, XmlString lexical)
           
 CAdapter getAdapterUse()
           
 CCustomizations getCustomizations()
          Gets the list of customizations attached to this model component.
 javax.activation.MimeType getExpectedMimeType()
          No default MimeType.
 Location getLocation()
          Gets the location object that this object points to.
 XSComponent getSchemaComponent()
          If this model object is built from XML Schema, this property returns a schema component from which the model is built.
 Locatable getUpstream()
          Gets the upstream Location information.
 ID idUse()
           
 boolean 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.xml.bind.v2.model.core.TypeInfo
getType
 
Methods inherited from interface com.sun.tools.xjc.model.CCustomizable
getLocator
 

Constructor Detail

AbstractCTypeInfoImpl

protected AbstractCTypeInfoImpl(Model model,
                                XSComponent source,
                                CCustomizations customizations)
Method Detail

isCollection

public final boolean isCollection()

getAdapterUse

public final CAdapter getAdapterUse()

idUse

public final ID idUse()

getSchemaComponent

public final XSComponent getSchemaComponent()
Description copied from interface: CCustomizable
If this model object is built from XML Schema, this property returns a schema component from which the model is built.

Specified by:
getSchemaComponent in interface CCustomizable
Returns:
null if the model is built from sources other than XML Schema (such as DTD.)

canBeReferencedByIDREF

public final boolean canBeReferencedByIDREF()
Deprecated. why are you calling an unimplemented method?

Description copied from interface: TypeInfo
True if this type is a valid target from a property annotated with XmlIDREF.

Specified by:
canBeReferencedByIDREF in interface TypeInfo<NType,NClass>

getExpectedMimeType

public javax.activation.MimeType getExpectedMimeType()
No default MimeType.


getCustomizations

public CCustomizations getCustomizations()
Description copied from interface: CCustomizable
Gets the list of customizations attached to this model component.

Specified by:
getCustomizations in interface CCustomizable
Returns:
can be an empty list but never be null. The returned list is read-only. Do not modify.
See Also:
Plugin.getCustomizationURIs()

createConstant

public com.sun.codemodel.JExpression createConstant(Outline outline,
                                                    XmlString lexical)

getUpstream

public final Locatable getUpstream()
Description copied from interface: Locatable
Gets the upstream Location information.

Specified by:
getUpstream in interface Locatable
Returns:
can be null.

getLocation

public final Location getLocation()
Description copied from interface: Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.

Specified by:
getLocation in interface Locatable