org.ujac.util.template
Class TokenAncestor

java.lang.Object
  extended by org.ujac.util.template.TokenAncestor

public class TokenAncestor
extends Object

Title: AncestorDefinition
Description: Helper class for definitions of ancestors.

Author:
lauerc

Constructor Summary
TokenAncestor(String token)
          Constructs a AncestorDefinition instance with specific attributes.
TokenAncestor(String token, boolean optional)
          Constructs a AncestorDefinition instance with specific attributes.
TokenAncestor(String token, boolean optional, boolean multiple)
          Constructs a AncestorDefinition instance with specific attributes.
 
Method Summary
 String getToken()
          Gets the ancestor token.
 boolean isMultiple()
          Gets the multiple flag.
 boolean isOptional()
          Gets the optional flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenAncestor

public TokenAncestor(String token)
Constructs a AncestorDefinition instance with specific attributes.

Parameters:
token - The statement token.

TokenAncestor

public TokenAncestor(String token,
                     boolean optional)
Constructs a AncestorDefinition instance with specific attributes.

Parameters:
token - The statement token.
optional - The optional flag.

TokenAncestor

public TokenAncestor(String token,
                     boolean optional,
                     boolean multiple)
Constructs a AncestorDefinition instance with specific attributes.

Parameters:
token - The statement token.
optional - The optional flag.
multiple - The multiple flag.
Method Detail

getToken

public String getToken()
Gets the ancestor token.

Returns:
The ancestor token.

isOptional

public boolean isOptional()
Gets the optional flag.

Returns:
The optional flag.

isMultiple

public boolean isMultiple()
Gets the multiple flag.

Returns:
The multiple flag.


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