Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.xmlschema.bindinfo

pack-priv abstract Class AbstractDeclarationImpl

extends Object
implements BIDeclaration
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration
Known Direct Subclasses
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIClass, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIConversion, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDom, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIEnum, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIEnumMember, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIFactoryMethod, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIGlobalBinding, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIInlineBinaryData, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIProperty, com.sun.tools.xjc.reader.xmlschema.bindinfo.BISchemaBinding, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIXPluginCustomization, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIXSubstitutable
Imports
java.util.Collection, .Collections, com.sun.codemodel.JCodeModel, com.sun.tools.xjc.reader.Ring, com.sun.tools.xjc.reader.xmlschema.BGMBuilder, org.glassfish.jaxb.core.annotation.XmlLocation, com.sun.xml.xsom.XSComponent, org.xml.sax.Locator

Abstract partial implementation of BIDeclaration
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private boolean
pack-priv Locator
protected BindInfo

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected final BGMBuilder
public Collection<BIDeclaration>
protected final JCodeModel
public Locator
getLocation()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getLocation.

Gets the source location where this declaration was written.

protected final XSComponent
public final boolean
isAcknowledged()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.isAcknowledged.

Checks if this declaration was acknowledged.

public void
markAsAcknowledged()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.markAsAcknowledged.

Marks this declaration to be acknowledged -- either actually used or the existence is admitted (for example when a property customization is given at the point of definition.)

Declarations that are not acknowledged will be considered as an error.

public void
onSetOwner()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.onSetOwner.

Called when the parent BindInfo got its owner set.

public void
setParent(BindInfo p)

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.setParent.

Sets the parent BindInfo object of this declaration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isAcknowledgedback to summary
private boolean isAcknowledged
locback to summary
pack-priv Locator loc
Annotations
@XmlLocation
parentback to summary
protected BindInfo parent

Constructor Detail

AbstractDeclarationImplback to summary
protected AbstractDeclarationImpl(Locator loc)

Deprecated

Annotations
@Deprecated
AbstractDeclarationImplback to summary
protected AbstractDeclarationImpl()

Method Detail

getBuilderback to summary
protected final BGMBuilder getBuilder()
getChildrenback to summary
public Collection<BIDeclaration> getChildren()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getChildren.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getChildren.

Gets child s if any.

Annotations
@Override
getCodeModelback to summary
protected final JCodeModel getCodeModel()
getLocationback to summary
public Locator getLocation()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getLocation.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.getLocation.

Gets the source location where this declaration was written. For declarations that are generated by XJC itself, this method returns null.

Annotations
@Override
getOwnerback to summary
protected final XSComponent getOwner()
isAcknowledgedback to summary
public final boolean isAcknowledged()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.isAcknowledged.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.isAcknowledged.

Checks if this declaration was acknowledged.

Annotations
@Override
markAsAcknowledgedback to summary
public void markAsAcknowledged()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.markAsAcknowledged.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.markAsAcknowledged.

Marks this declaration to be acknowledged -- either actually used or the existence is admitted (for example when a property customization is given at the point of definition.)

Declarations that are not acknowledged will be considered as an error.

Annotations
@Override
onSetOwnerback to summary
public void onSetOwner()

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.onSetOwner.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.onSetOwner.

Called when the parent BindInfo got its owner set. This is when declarations are connected to BGMBuilder and its sibling components.

Annotations
@Override
setParentback to summary
public void setParent(BindInfo p)

Implements com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.setParent.

Doc from com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration.setParent.

Sets the parent BindInfo object of this declaration. A declaration object can use this pointer to access context information, such as other customizations.

This method can be only called from BindInfo, and only once. This is a good opportunity to do some follow-up initialization after JAXB unmarshalling populated .

Annotations
@Override