xdoclet.sdk.xgg.binding
Class SubElement

java.lang.Object
  |
  +--xdoclet.sdk.xgg.binding.SubElement
All Implemented Interfaces:
Child

public class SubElement
extends Object
implements Child

Represents a sub element in an element declaration.

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

Constructor Summary
SubElement(Element element, Element container)
          Constructor for the SubElement object
 
Method Summary
 boolean equals(Object o)
           
 Cardinality getCardinality()
          Gets the cardinality related to the associated element
 Element getContainer()
          Gets the container element
 Element getElement()
          Gets the associated element
 String getId()
          Returns an id based on the class name and the xml name.
 String getJavaName()
          Gets the Java name of associated element
 String getJavaType()
          Gets the Java type of the associated element
 String getVersion()
          Gets the version
 String getXmlName()
          Gets the XML name of the associated element
 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
 String toString()
          Implementation of the toString method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubElement

public SubElement(Element element,
                  Element container)
Constructor for the SubElement object

Parameters:
element - Description of the Parameter
container - Description of the Parameter
Method Detail

getCardinality

public Cardinality getCardinality()
Gets the cardinality related to the associated element

Specified by:
getCardinality in interface Child
Returns:
The cardinality holder

getContainer

public Element getContainer()
Gets the container element

Specified by:
getContainer in interface Child
Returns:
The container element

getElement

public Element getElement()
Gets the associated element

Returns:
The associated element

getJavaName

public String getJavaName()
Gets the Java name of associated element

Specified by:
getJavaName in interface Child
Returns:
The Java name

getJavaType

public String getJavaType()
Gets the Java type of the associated element

Specified by:
getJavaType in interface Child
Returns:
The Java type

getVersion

public String getVersion()
Gets the version

Specified by:
getVersion in interface Child
Returns:
The version

getXmlName

public String getXmlName()
Gets the XML name of the associated element

Specified by:
getXmlName in interface Child
Returns:
The XML name

isAttribute

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

Specified by:
isAttribute in interface Child
Returns:
True if it is an attribute

isMany

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

Specified by:
isMany in interface Child
Returns:
True if it has a many cardinality

getId

public String getId()
Description copied from interface: Child
Returns an id based on the class name and the xml name. Used to distinguish SubElement and Attribute with same xml name.

Specified by:
getId in interface Child
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Implementation of the toString method

Overrides:
toString in class Object
Returns:
String representation


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