|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.manifest.Manifest
This class serves as a data container for gathering Directive
objects to be passed from one or many services to another service optimized
to handle the required interaction with the database for the set of Directive
objects it contains. An instance of Manifest
is created
by using the createManifest()
API from ManifestServerHelper
.
Directive
objects are added via helper methods defined on
ManifestServerHelper
class. A Manifest
is processed
by passing it to theManifestServerHelper.service.processManifest(manifest
: Manifest)
API from ManifestServiceSvr
. A Manifest
which has been processed will contain Directive
objects
that have their own results via the Directive/DirectiveResult
relationship.
Supported API: true
Extendable: false
Directive
,
DirectiveResult
,
ManifestServerHelper
,
ManifestServiceSvr
Field Summary | |
private static String |
CLASSNAME
|
private HashMap |
directivesMap
|
private boolean |
manifestProcessed
|
private static String |
RESOURCE
|
private static boolean |
verbose
|
Constructor Summary | |
protected |
Manifest()
Instances of this class should be created using the createManifest
API available on ManifestServerHelper to ensure proper
initialization. |
Method Summary | |
DirectiveResult[] |
getAllDirectiveResults()
Gets all the DirectiveResult objects for allDirective
objects within the Manifest . |
protected Directive[] |
getAllDirectives()
Gets all the Directive objects contained wihin the Manifest
instance. |
DirectiveResult[] |
getDirectiveResults(String name)
Gets the DirectiveResult for a specific Directive
object within the Manifest based on the name
that is specified. |
protected Directive[] |
getDirectives(String name)
Gets the Directive objects associated with the specified
group name . |
protected Directive[] |
getDirectivesByType(String directiveType)
Gets all the Directive objects of the type specified
by directiveType (the fully qualified class name of the
Directive type to be retrieved). |
protected String[] |
getDirectiveTypes()
Gets the class names for each unique type of Directive
contained within this Manifest . |
protected String |
insertDirective(Directive directive,
String name)
Inserts a Directive object into the Manifest . |
protected boolean |
isManifestProcessed()
Gets the value of the attribute: manifestProcessed; Flag for recording whether or not the Manifest object has been processed. |
protected void |
removeDirectives(String name)
Removes the Directive objects identified by the group
name from the Manifest . |
protected Manifest |
resetManifest()
Completely empties the Manifest object and returns it
to it's initial creation state. |
protected void |
setManifestProcessed(boolean a_ManifestProcessed)
Sets the value of the attribute: manifestProcessed; Flag for recording whether or not the Manifest object has been processed. |
String |
toString()
|
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 boolean manifestProcessed
private HashMap directivesMap
Constructor Detail |
protected Manifest()
createManifest
API available on ManifestServerHelper
to ensure proper
initialization.
ManifestServerHelper
Method Detail |
protected boolean isManifestProcessed()
Manifest
object has been processed.
This should only be set by the code that processed the Manifest
.
protected void setManifestProcessed(boolean a_ManifestProcessed) throws WTPropertyVetoException
Manifest
object has been processed.
This should only be set by the code that processed the Manifest
.
a_ManifestProcessed
-
WTPropertyVetoException
protected Manifest resetManifest()
Manifest
object and returns it
to it's initial creation state.
protected String insertDirective(Directive directive, String name) throws WTException
Directive
object into the Manifest
.
If a valid value for name
is provided it will attempt
to store the specified Directive
with the name
provided, and return that value. If the name is invalid for any reason
an exception is thrown. If a null
value is passed for
name
the Manifest
will create a storage
name
and return that value.
directive
- Directive
object to be added to the Manifest
.name
- Optional storage name for the Directive
being inserted, if a null
name is provided a storage name is internally generated by the Manifest
.
WTException
protected void removeDirectives(String name) throws WTException
Directive
objects identified by the group
name
from the Manifest
.
name
- Internal storage name of the Directive
objects to be removed. This should be the whatever was returned when the Directive
was inserted with insertDirective(directive, name)
.
WTException
protected Directive[] getDirectives(String name) throws WTException
Directive
objects associated with the specified
group name
.
name
- Internal storage name of the Directive
objects to be retrieved. This should be whatever was returned when the Directive
was inserted with insertDirective(directive, name)
.
WTException
protected Directive[] getAllDirectives() throws WTException
Directive
objects contained wihin the Manifest
instance.
WTException
public DirectiveResult[] getDirectiveResults(String name) throws WTException
DirectiveResult
for a specific Directive
object within the Manifest
based on the name
that is specified. If the Manifest
has not been processed,
or the Directive
specified by name
does
not exist, a WTException is thrown.
name
- Internal storage name of the group whose results will be retrieved. This should be the whatever was returned when the Directive
was inserted with insertDirective(directive, name)
.
WTException
public DirectiveResult[] getAllDirectiveResults()
DirectiveResult
objects for allDirective
objects within the Manifest
. If the Manifest
has not been processed, a WTException is thrown.
protected String[] getDirectiveTypes()
Directive
contained within this Manifest
.
protected Directive[] getDirectivesByType(String directiveType)
Directive
objects of the type specified
by directiveType
(the fully qualified class name of the
Directive
type to be retrieved).
directiveType
- String representing the class name of the Directive
objects to be retrieved from the Manifest
.
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |