xdoclet.sdk.xgg
Class MergedClass

java.lang.Object
  |
  +--xdoclet.sdk.xgg.MergedClass

public final class MergedClass
extends Object

This class is a data object for Velocity used during generation of beans that represent XML elements.

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

Constructor Summary
MergedClass()
           
 
Method Summary
 void addElement(Element element)
          Adds an element to this class model.
 Collection getElements()
          Returns the elements that were used to build this class.
 String getJavaName()
          Gets the Java name of the first element
 List getMergedMethods()
          Returns the method models.
 Collection getReferers()
          Returns the class model referers.
 String getRegexp()
          Gets the regular expression pattern used for validation
 String getXmlName()
          This will return the XML name of the first element.
 boolean isPcData()
          Returns whether or not this class model has a PC Data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergedClass

public MergedClass()
Method Detail

addElement

public void addElement(Element element)
Adds an element to this class model. This potentially adds more methods.

Parameters:
element - The element to add

getElements

public Collection getElements()
Returns the elements that were used to build this class. This is only used in the template to list all grammars that have the element that correspond to this class.

Returns:
a Collection of Element.

getJavaName

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

Returns:
The Java name

getMergedMethods

public List getMergedMethods()
Returns the method models.

Returns:
a Collection of MergedMethod.

getReferers

public Collection getReferers()
Returns the class model referers.

Returns:
a Collection of Referer.

getRegexp

public String getRegexp()
Gets the regular expression pattern used for validation

Returns:
The regular expression pattern

getXmlName

public String getXmlName()
This will return the XML name of the first element. This should be the actual XML name of the first element as would be seen in an XML document.

Returns:
the XML name of the first element.

isPcData

public boolean isPcData()
Returns whether or not this class model has a PC Data

Returns:
True if this class model has a PC Data


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