org.ujac.print
Class ChildDefinition

java.lang.Object
  extended by org.ujac.print.ChildDefinition

public class ChildDefinition
extends Object

Name: ChildDefinition
Description: A class for child definitions.

Author:
lauerc

Field Summary
static int UNLIMITED
          Constant for the occurrences amount, interpreted as unlimited.
 
Constructor Summary
ChildDefinition(Class type, int minOccurrences, int maxOccurrences)
          Constructs a ChildDefinition instance with specific arguments.
 
Method Summary
 int getMaxOccurrences()
          Gets the maximum occurrence of the item.
 int getMinOccurrences()
          Gets the minimum occurrence of the item.
 Class getType()
          Gets the child type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNLIMITED

public static final int UNLIMITED
Constant for the occurrences amount, interpreted as unlimited.

See Also:
Constant Field Values
Constructor Detail

ChildDefinition

public ChildDefinition(Class type,
                       int minOccurrences,
                       int maxOccurrences)
Constructs a ChildDefinition instance with specific arguments.

Parameters:
type - The child type.
minOccurrences - The minimum occurrences of the child.
maxOccurrences - The maximum occurrences of the child.
Method Detail

getType

public Class getType()
Gets the child type.

Returns:
The child type.

getMinOccurrences

public int getMinOccurrences()
Gets the minimum occurrence of the item.

Returns:
The minimum occurrence of the item.

getMaxOccurrences

public int getMaxOccurrences()
Gets the maximum occurrence of the item.

Returns:
The maximum occurrence of the item.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.