|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A DocumentID
identifies rule document(s) in a repository store accessed with a RepositoryConnection
. Rule documents are stored and retreived using the following information (all of type String
):
Each of above must be a Unicode identifier as defined by the isUnicodeIdentifierStart
and isUnicodeIdentifierPart
methods in java.lang.Character
.
If the underlying repository supports revision control, the DocumentID
may also contain a revision or a tag (also referred to as a label). Since a tag is associated with a specific document revision, only one of the revision and tag components may be set. If neither the revision nor the tag are specified, then the DocumentID
should refer to the current revision of the document. Revision and tag values for a document may be retrieved with the getDocumentMetadata method.
When used with listDocuments, a DocumentID may contain a simplified form of wildcards. Each DocumentID component may be replaced by the single character '*' which indicates that all values of that component should be matched.
Instances of this class are constructed by invoking the createDocumentID
methods in the RepositoryConnection
interface. The fields of the DocumentID
can be set at construction time and/or with the verious setter methods. Once the fields have been set, the DocumentID
must be validated prior to use (or invocation of any getter method) by invoking the validation method appropriate for the intended use.
Field Summary | |
static java.lang.String |
WILDCARD The wildcard string for fields of a DocumentID . |
Method Summary | |
boolean |
containsWildcard() Returns true if there is a wildcard in any portion of this document ID. |
java.lang.String |
getDictionaryName() Returns the name of the dictionary in this document ID |
java.lang.String |
getDocumentName() Returns the document name in this document ID |
java.lang.String |
getDocumentType() Returns the document type in this document ID |
java.lang.String |
getMarker() Returns the marker in this document ID. |
java.lang.String |
getRevision() Returns the optional revision in this document ID. |
java.lang.String |
getTag() Returns the optional tag in this document ID. |
boolean |
isValidForDocumentAccess() Returns true if this ID is valid for document read access. |
boolean |
isValidForListDocuments() Returns true if this ID is valid use with listDocuments . |
boolean |
isWildcard(java.lang.String idComponent) Returns true if the specified String is a wildcard. |
void |
setDictionaryName(java.lang.String name) Sets the name of the dictionary for this document ID |
void |
setDocumentName(java.lang.String name) Sets the document name in this document ID |
void |
setDocumentType(java.lang.String type) Sets the document type in this document ID |
void |
setMarker(java.lang.String marker) Sets the marker in this document ID. |
void |
setRevision(java.lang.String revision) Sets the optional revision in this document ID. |
void |
setTag(java.lang.String tag) Sets the optional tag in this document ID. |
void |
validateForConnection(RepositoryConnection connection) Validates that the DocumentID is valid to be used with the specified RepositoryConnection . |
void |
validateForDocumentAccess() Validates the document ID for for document read access. |
void |
validateForListDocuments() Validates the document ID for use with listDocuments . |
Field Detail |
public static final java.lang.String WILDCARD
DocumentID
.
Method Detail |
public boolean isValidForDocumentAccess()
true
if this ID is valid for document read access.true
if this ID is valid for document read access.public boolean isValidForListDocuments()
true
if this ID is valid use with listDocuments
.true
if this ID is valid use with listDocuments
.public void validateForDocumentAccess() throws DocumentIDException
DocumentIDException
- if there is an error detected in the ID.isValidForListDocuments()
, isValidForDocumentAccess()
public void validateForListDocuments() throws DocumentIDException
listDocuments
. The valid usage indicators are updated.DocumentIDException
- if there is an error detected in the ID.isValidForListDocuments()
, isValidForDocumentAccess()
public void validateForConnection(RepositoryConnection connection) throws DocumentIDException
DocumentID
is valid to be used with the specified RepositoryConnection
. This method should be invoked on each DocumentID
passed to a RepositoryConnection
implementation.DocumentIDException
- if the ID can not be used with the specified RepositoryConnection
.public java.lang.String getDictionaryName() throws DocumentIDException
DocumentIDException
- if this DocumentID object has not been validated.public void setDictionaryName(java.lang.String name)
name
- the dictionary namepublic java.lang.String getDocumentType() throws DocumentIDException
DocumentIDException
- if this DocumentID object has not been validated.public void setDocumentType(java.lang.String type)
type
- the document typepublic java.lang.String getDocumentName() throws DocumentIDException
DocumentIDException
- if this DocumentID object has not been validated.public void setDocumentName(java.lang.String name)
name
- the document nameDocumentIDException
- if this DocumentID object has not been validated.public java.lang.String getMarker() throws DocumentIDException
DocumentIDException
- if this DocumentID object has not been validated.public void setMarker(java.lang.String marker)
marker
- the markerpublic java.lang.String getTag() throws DocumentIDException
null
if a tag was not specified.DocumentIDException
- if this DocumentID object has not been validated.public void setTag(java.lang.String tag)
null
indicates that no tag is present.tag
- the tagpublic java.lang.String getRevision() throws DocumentIDException
null
if a revision was not specified.DocumentIDException
- if this DocumentID object has not been validated.public void setRevision(java.lang.String revision)
null
indicates that no revision is present.revision
- the revisionpublic boolean containsWildcard() throws DocumentIDException
DocumentIDException
- if this DocumentID object has not been validated.public boolean isWildcard(java.lang.String idComponent)
String
is a wildcard.idComponent
- the String to test for a wildcard.
Returns:
true if the specified
String is a wildcard.
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |