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

public Class BIContent

extends Object
Class Inheritance
Imports
java.util.ArrayList, com.sun.codemodel.JClass, com.sun.tools.xjc.Options, com.sun.tools.xjc.generator.bean.field.FieldRenderer, org.w3c.dom.Element

Particles in the <content> declaration in the binding file.

Field Summary

Modifier and TypeField and Description
protected final Element
element

The particle element which this object is wrapping.

private final Options
protected final BIElement
parent

The parent object.

Constructor Summary

AccessConstructor and Description
private
BIContent(Element e, BIElement _parent)

Wraps a given particle.

Method Summary

Modifier and TypeMethod and Description
pack-priv static BIContent
create(Element e, BIElement _parent)

Creates an appropriate subclass of BIContent by sniffing the tag name.

public final String

Returns:

always a non-null, valid string.
getPropertyName
()

Gets the property name of this particle.

public final FieldRenderer

Returns:

null if the "collection" attribute was not specified.
getRealization
()

Gets the realization of this particle, if any.

public final JClass

Returns:

null if none is specified.
getType
()

Gets the type of this property, if any.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementback to summary
protected final Element element

The particle element which this object is wrapping.

optsback to summary
private final Options opts
parentback to summary
protected final BIElement parent

The parent object.

Constructor Detail

BIContentback to summary
private BIContent(Element e, BIElement _parent)

Wraps a given particle.

This object should be created through the create(Element, BIElement) method.

Method Detail

createback to summary
pack-priv static BIContent create(Element e, BIElement _parent)

Creates an appropriate subclass of BIContent by sniffing the tag name.

This method should be only called by the BIElement class.

getPropertyNameback to summary
public final String getPropertyName()

Gets the property name of this particle.

Returns:String

always a non-null, valid string.

getRealizationback to summary
public final FieldRenderer getRealization()

Gets the realization of this particle, if any.

Returns:FieldRenderer

null if the "collection" attribute was not specified.

getTypeback to summary
public final JClass getType()

Gets the type of this property, if any.

<element-ref> particle doesn't have the type.

Returns:JClass

null if none is specified.