xdoclet.sdk.xgg
Class MergedMethod

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

public final class MergedMethod
extends Object

This class represents a method in the generated sources. It holds information about what versions of a DTD/XSD it is valid for.

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

Constructor Summary
MergedMethod(Child child)
          Constructor for the MergedMethod object
 
Method Summary
 void addChild(Child child)
          Adds a child to this method model
 Cardinality getCardinality()
          Gets the cardinality related to the first child
 List getChildren()
          Gets all the children.
 int getIndex()
           
 String getJavaName()
          Gets the Java name of the first child
 String getJavaType()
          Gets the Java type of the first child
 String getJavaVariableName()
          Gets the Java name of the property extracted from the Java name
 String getRegexp()
          Gets the regular expression pattern used for validation
 String getXmlName()
          This will return the XML name of the first child.
 boolean isAttribute()
          Returns whether or not this sub element is an attribute
 boolean isMany()
          Returns true if this child is a many element.
 void setIndex(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergedMethod

public MergedMethod(Child child)
Constructor for the MergedMethod object

Parameters:
child - Description of the Parameter
Method Detail

addChild

public void addChild(Child child)
Adds a child to this method model

Parameters:
child - The child to add

getCardinality

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

Returns:
The cardinality holder

getChildren

public List getChildren()
Gets all the children.

Returns:
a Collection of Child.

getJavaName

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

Returns:
The Java name

getJavaType

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

Returns:
The Java type

getJavaVariableName

public String getJavaVariableName()
Gets the Java name of the property extracted from the Java name

Returns:
The Java name of the property

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 child. This should be the actual XML name of the first child as would be seen in an XML document.

Returns:
the XML name of the first child.

isAttribute

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

Returns:
True if it is an attribute

isMany

public boolean isMany()
Returns true if this child is a many element. Considered to be true if at least one of the children (from various versions) are many.

Returns:
true if this method corresponds to a many child.

setIndex

public void setIndex(int index)

getIndex

public int getIndex()


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