xdoclet.sdk.xgg.binding
Interface Child

All Known Implementing Classes:
Attribute, SubElement

public interface Child

Interface to be implemented by element children

Version:
$Revision: 1.4 $
Author:
Aslak Hellesøy, Laurent Etiemble

Method Summary
 Cardinality getCardinality()
          Gets the cardinality related to the child
 Element getContainer()
          Gets the container element of the child
 String getId()
          Returns an id based on the class name and the xml name.
 String getJavaName()
          Gets the Java name of the child
 String getJavaType()
          Gets the Java type of the child
 String getVersion()
          Gets the version
 String getXmlName()
          Gets the XML name of the child
 boolean isAttribute()
          Returns whether or not this sub element is an attribute
 boolean isMany()
          Returns whether or not this sub element has a many cardinality
 

Method Detail

getXmlName

public String getXmlName()
Gets the XML name of the child

Returns:
The XML name

getJavaName

public String getJavaName()
Gets the Java name of the child

Returns:
The Java name

getJavaType

public String getJavaType()
Gets the Java type of the child

Returns:
The Java type

getVersion

public String getVersion()
Gets the version

Returns:
The version

isAttribute

public boolean isAttribute()
Returns whether or not this sub element is an attribute

Returns:
True if it is an attribute

getContainer

public Element getContainer()
Gets the container element of the child

Returns:
The container element

getCardinality

public Cardinality getCardinality()
Gets the cardinality related to the child

Returns:
The cardinality holder

isMany

public boolean isMany()
Returns whether or not this sub element has a many cardinality

Returns:
True if it has a many cardinality

getId

public String getId()
Returns an id based on the class name and the xml name. Used to distinguish SubElement and Attribute with same xml name.

Returns:


Copyright © 2000-2003 XDoclet Team. All Rights Reserved.