org.enhydra.zeus.util
Class ZeusTask.Constraint

java.lang.Object
  |
  +--org.enhydra.zeus.util.ZeusTask.Constraint
Enclosing class:
ZeusTask

public class ZeusTask.Constraint
extends java.lang.Object

Constraint is an inner class used to represent a single constraint element (constraint). It determines all of the attributes specified on that element.


Constructor Summary
ZeusTask.Constraint()
           This constraint sets up default values.
 
Method Summary
 boolean collapseSimpleElements()
           This will indicate whether or not simple elements are collapsed.
 java.io.File getConstraintFile()
           This will return the Java File object representing the constraint to use for source code generation.
 java.lang.String getJavaPackage()
           This returns the Java package used in generated classes.
 java.lang.String getType()
           This will return the type of constraint being processed.
 boolean ignoreIDAttributes()
           This indicates whether or not ID attributes are ignored in the constraint generation and determination of simple elements.
 void setCollapseSimpleElements(boolean collapseSimpleElements)
           This will set whether or not simple elements are collapsed.
 void setConstraintFile(java.io.File constraintFile)
           This will set the file to use as a constraint for source code generation.
 void setIgnoreIDAttributes(boolean ignoreIDAttributes)
           This will set whether or not to ignore ID attributes when determining if an element is "simple".
 void setJavaPackage(java.lang.String javaPackage)
           This sets the Java package to use for generated classes.
 void setType(java.lang.String type)
           This will set the constraint type of the constraint file supplied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeusTask.Constraint

public ZeusTask.Constraint()

This constraint sets up default values.

Method Detail

getConstraintFile

public java.io.File getConstraintFile()

This will return the Java File object representing the constraint to use for source code generation.

Returns:
File - the constraint to generate code from.

setConstraintFile

public void setConstraintFile(java.io.File constraintFile)

This will set the file to use as a constraint for source code generation.

Parameters:
constraintFile - File for XML constraint set.

getType

public java.lang.String getType()

This will return the type of constraint being processed.

Returns:
String - the constraint type.

setType

public void setType(java.lang.String type)

This will set the constraint type of the constraint file supplied.

Parameters:
type - the type of constraint to process.

getJavaPackage

public java.lang.String getJavaPackage()

This returns the Java package used in generated classes.

Returns:
String - the Java package for generated classes.

setJavaPackage

public void setJavaPackage(java.lang.String javaPackage)

This sets the Java package to use for generated classes.

Parameters:
javaPackage - the package to use for generated classes.

ignoreIDAttributes

public boolean ignoreIDAttributes()

This indicates whether or not ID attributes are ignored in the constraint generation and determination of simple elements.

Returns:
boolean - whether ID attributes are ignored.

setIgnoreIDAttributes

public void setIgnoreIDAttributes(boolean ignoreIDAttributes)

This will set whether or not to ignore ID attributes when determining if an element is "simple".

Parameters:
ignoreIDAttributes - whether or not to ignore ID attributes.

collapseSimpleElements

public boolean collapseSimpleElements()

This will indicate whether or not simple elements are collapsed.

Returns:
boolean - whether or not simple elements are collapsed.

setCollapseSimpleElements

public void setCollapseSimpleElements(boolean collapseSimpleElements)

This will set whether or not simple elements are collapsed.

Parameters:
collapseSimpleElements - - whether or not simple elements are collapsed.


Copyright © 2002 Enhydra. All Rights Reserved.