xdoclet.sdk.xgg.binding
Class Element

java.lang.Object
  |
  +--xdoclet.sdk.xgg.binding.Binding
        |
        +--xdoclet.sdk.xgg.binding.Element

public class Element
extends Binding

Represents a XML element. Holds references to its children and its referers.

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

Constructor Summary
Element(String xmlName, String version)
          Constructor for the Element object
 
Method Summary
 void addChild(Child child)
          Adds a feature to the Child attribute of the Element object
 void addReferer(SubElement subElement)
          Adds a feature to the Referer attribute of the Element object
 Collection getChildren()
          Gets the children attribute of the Element object
 String getJavaType()
          Gets the javaType attribute of the Element object
 List getReferers()
          Gets the referers attribute of the Element object
 SubElement getSubElement(String xmlName)
          Gets the referer attribute of the Element object
 boolean isPcData()
          Gets the pcData attribute of the Element object
 String toString()
          Description of the Method
 
Methods inherited from class xdoclet.sdk.xgg.binding.Binding
getJavaName, getRegexp, getVersion, getXmlName, setRegexp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Element

public Element(String xmlName,
               String version)
Constructor for the Element object

Parameters:
xmlName - Description of the Parameter
version - Description of the Parameter
Method Detail

addChild

public void addChild(Child child)
Adds a feature to the Child attribute of the Element object

Parameters:
child - The feature to be added to the Child attribute

addReferer

public void addReferer(SubElement subElement)
Adds a feature to the Referer attribute of the Element object

Parameters:
subElement - The feature to be added to the Referer attribute

getChildren

public Collection getChildren()
Gets the children attribute of the Element object

Returns:
The children value

getJavaType

public String getJavaType()
Gets the javaType attribute of the Element object

Specified by:
getJavaType in class Binding
Returns:
The javaType value

getReferers

public List getReferers()
Gets the referers attribute of the Element object

Returns:
The referers value

getSubElement

public SubElement getSubElement(String xmlName)
Gets the referer attribute of the Element object

Parameters:
xmlName - Description of the Parameter
Returns:
The referer value

isPcData

public boolean isPcData()
Gets the pcData attribute of the Element object

Returns:
The pcData value

toString

public String toString()
Description of the Method

Overrides:
toString in class Object
Returns:
Description of the Return Value


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