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

java.lang.Object
  extended by com.sun.tools.xjc.reader.dtd.bindinfo.BIContent

public class BIContent
extends Object

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


Field Summary
protected  Element element
          The particle element which this object is wrapping.
protected  BIElement parent
          The parent object.
 
Method Summary
(package private) static BIContent create(Element e, BIElement _parent)
          Creates an appropriate subclass of BIContent by sniffing the tag name.
 String getPropertyName()
          Gets the property name of this particle.
 FieldRenderer getRealization()
          Gets the realization of this particle, if any.
 com.sun.codemodel.JClass getType()
          Gets the type of this property, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getRealization

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

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

getPropertyName

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

Returns:
always a non-null, valid string.

getType

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

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

Returns:
null if none is specified.

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.