public interface BinXMLMetadataProvider
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getCompiledSchema(BinXMLVocabId schemaId)
Fetches the schema as a binary stream from the metadata repository based on the vocabulary id.
|
java.io.Reader |
getCompiledSchema(java.lang.String schemaURL)
Fetches the schema as a binary stream from the metadata repository based on the schema URL.
|
BinXMLStream |
getDTD(BinXMLVocabId dtdId)
Fetches the DTD as a binary stream from the metadata repository based on the vocabulary id.
|
BinXMLStream |
getDTD(java.lang.String dtdURL)
Fetches the DTD as a binary stream from the metadata repository based on the DTD URL.
|
BinXMLStream |
getTokenSet(long tokenId)
Fetches the Token Set as a binary stream in the metadata repository based on the input token id.
|
BinXMLStream |
getTokenSet(long tokenId, boolean isNS)
Fetches the Token Set as a binary stream in the metadata repository based on the namespace of the input token Id.
|
BinXMLStream |
getTokenSet(java.lang.String namespaceURL, boolean isAttr)
Fetches the Token Set as a binary stream in the metadata repository based on the namespace URL.
|
boolean |
isSchemaAnnotationAvailable()
Specifies whether the repository performs schema annotations or not.
|
BinXMLVocabId |
saveCompiledSchema(java.lang.String schemaURL)
Saves the annotated schema as a binary stream in the metadata repository.
|
BinXMLVocabId |
saveDTD(java.lang.String dtdURL)
Saves the DTD as a binary stream in the metadata repository.
|
BinXMLVocabId |
saveSchema(java.lang.String schemaURL)
The repository accepts a non-annotated schema, annotates it and saves it as a binary stream in the metadata repository.
|
BinXMLVocabId |
saveTokenSet(java.lang.String namespaceURL)
Saves the Token Set as a binary stream in the metadata repository.
|
boolean isSchemaAnnotationAvailable()
throws BinXMLException
BinXMLExceptionjava.io.Reader getCompiledSchema(BinXMLVocabId schemaId) throws BinXMLException
schemaId - - vocabulary id of the schema to be fetchedBinXMLException
java.io.Reader getCompiledSchema(java.lang.String schemaURL)
throws BinXMLException
schemaURL - - URL of the schema to be fetchedBinXMLExceptionBinXMLVocabId saveSchema(java.lang.String schemaURL) throws BinXMLException
schemaURL - - URL of the schema to be savedBinXMLExceptionBinXMLVocabId saveCompiledSchema(java.lang.String schemaURL) throws BinXMLException
BinXMLExceptionBinXMLStream getDTD(BinXMLVocabId dtdId) throws BinXMLException
dtdId - - vocabulary id of the DTD to be fetchedBinXMLExceptionBinXMLStream getDTD(java.lang.String dtdURL) throws BinXMLException
dtdURL - - URL of the DTD to be fetchedBinXMLExceptionBinXMLVocabId saveDTD(java.lang.String dtdURL) throws BinXMLException
dtdURL - - URL of the DTD to be savedBinXMLExceptionBinXMLStream getTokenSet(java.lang.String namespaceURL, boolean isAttr) throws BinXMLException
namespaceURL - - namespace URL of the Token Set to be fetchedisAttr - - is the token set to be returned of type element or attrBinXMLExceptionBinXMLStream getTokenSet(long tokenId, boolean isNS) throws BinXMLException
tokenId - - token Id contained in the Token Set to be fetchedisNS - - if this token is a namespace decl, then true, otherwise falseBinXMLExceptionBinXMLStream getTokenSet(long tokenId) throws BinXMLException
tokenId - - token Id contained in the Token Set to be fetchedBinXMLExceptionBinXMLVocabId saveTokenSet(java.lang.String namespaceURL) throws BinXMLException
namespaceURL - - namespace URL of the Token Set to be savedBinXMLException