|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.manifest.AbstractDirective
This class defines a pattern for Directive implementation classes.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Map |
criteria
|
private static String |
RESOURCE
|
private DirectiveResult |
result
|
private static boolean |
verbose
|
protected static boolean |
VERBOSE
|
Fields inherited from interface wt.fc.manifest.Directive |
CRITERIA, RESULT |
Constructor Summary | |
AbstractDirective()
|
Method Summary | |
void |
addOperation(Directive directive)
This method defines a pattern for Directive implementation
classes. |
DirectiveCriteria[] |
getDirectiveCriteria(DirectiveCriteriaKey key)
Get a DirectiveCriteria array given the input DirectiveCriteriaKey. |
DirectiveResult |
getResult()
Gets the object for the association that plays role: result. |
String[] |
getTypes()
Determines what types are internally stored in the DirectiveCriteria
objects for this Directive, and returns an array of String
objects representing the list of fully qualified class names for those
types. |
void |
processOperation(Directive directive)
This method is responsible for doing the real work of merging the necessary operation information from the Directive being
added, to the Directive it is being added to. |
void |
putDirectiveCriteria(DirectiveCriteria directiveCriteria,
DirectiveCriteriaKey key)
This method checks for an existing DirectiveCriteria
object that is the same is the input object. |
private void |
resultValidate(DirectiveResult a_Result)
|
void |
setResult(DirectiveResult a_Result)
Sets the object for the association that plays role: result. |
String |
toString()
|
void |
validateOperation(Directive directive)
Validates that the Directive being added is of the same
type as the Directive it is being added to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean verbose
private Map criteria
private DirectiveResult result
protected static final boolean VERBOSE
Constructor Detail |
public AbstractDirective()
Method Detail |
public void addOperation(Directive directive) throws WTException
Directive
implementation
classes. It makes calls to validateOperation(Directive directive)
and processOperation(Directive directive)
which is implemented
in the concrete Directive
implementations and is responsible
for merging the operations.
addOperation
in interface Directive
directive
- Represents the database operation or set of database operations that are being added to this Directive
object.
WTException
public void validateOperation(Directive directive) throws WTException
Directive
being added is of the same
type as the Directive
it is being added to. If they are
not of the same type an Exception is thrown. If for some reason Directive
objects of different types can be added to one another, the concrete
implementations of those Directive
types would need to
override this mehod and do validation appropriate to their implementation.
directive
- Represents the database operation or set of database operations that are being added to this Directive
object.
WTException
public void processOperation(Directive directive) throws WTException
Directive
being
added, to the Directive
it is being added to.
directive
- Represents the database operation or set of database operations that are being added to this Directive
object.
WTException
public DirectiveCriteria[] getDirectiveCriteria(DirectiveCriteriaKey key)
getDirectiveCriteria
in interface Directive
key
-
public void putDirectiveCriteria(DirectiveCriteria directiveCriteria, DirectiveCriteriaKey key)
DirectiveCriteria
object that is the same is the input object. If it finds one it appends
any QueryKey
objects are already stored in the existing
DirectiveCriteria
object otherwise it is added to the
list of DirectiveCriteria
objects associated to the input
Directive.
putDirectiveCriteria
in interface Directive
directiveCriteria
- key
- public String[] getTypes()
DirectiveCriteria
objects for this Directive, and returns an array of String
objects representing the list of fully qualified class names for those
types.
getTypes
in interface Directive
public DirectiveResult getResult()
getResult
in interface Directive
public void setResult(DirectiveResult a_Result) throws WTPropertyVetoException
setResult
in interface Directive
a_Result
-
WTPropertyVetoException
private void resultValidate(DirectiveResult a_Result) throws WTPropertyVetoException
a_Result
-
WTPropertyVetoException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |