com.sun.tools.xjc.reader.dtd.bindinfo

Class BIContent

public class BIContent extends Object

Particles in the <content> declaration in the binding file.
Field Summary
protected Elementelement
The particle element which this object is wrapping.
protected BIElementparent
The parent object.
Method Summary
static BIContentcreate(Element e, BIElement _parent)
Creates an appropriate subclass of BIContent by sniffing the tag name.
StringgetPropertyName()
Gets the property name of this particle.
FieldRenderergetRealization()
Gets the realization of this particle, if any.
JClassgetType()
Gets the type of this property, if any.

Field Detail

element

protected final Element element
The particle element which this object is wrapping.

parent

protected final BIElement parent
The parent object.

Method Detail

create

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.

getPropertyName

public final String getPropertyName()
Gets the property name of this particle.

Returns: always a non-null, valid string.

getRealization

public final FieldRenderer getRealization()
Gets the realization of this particle, if any.

Returns: null if the "collection" attribute was not specified.

getType

public final JClass getType()
Gets the type of this property, if any.

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

Returns: null if none is specified.