public class InterMediaAnnotator extends Object implements oracle.ord.media.annotator.listeners.AnnListener, oracle.ord.media.annotator.listeners.OutputListener
| Modifier and Type | Field and Description | 
|---|---|
static String | 
ANNOTATOR_TRACELEVEL
Property Name for the Annotator TraceLevel. 
 | 
static String | 
CLASSMAP_VALUES
Property Name for the Class mappings. 
 | 
static String | 
INDEXABLE_ATTRIBUTES
Property Name for the Indexable attributes. 
 | 
static String | 
ORACLE_HOME
Property Name for the Oracle Home setting. 
 | 
| Constructor and Description | 
|---|
InterMediaAnnotator()
Constructs an InterMediaAnnotator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
annotate(Document doc,
        boolean trimMetadata)
Performs annotation processing for the specified Document. 
 | 
protected void | 
appendIndexableAttributes(PrintWriter pwriter,
                         oracle.ord.media.annotator.annotations.Annotation ann)
Checks for attributes in the annotation that we would want to
 include in the stream that is indexed by Context. 
 | 
protected String | 
appendTextTrack(PrintWriter pwriter,
               oracle.ord.media.annotator.annotations.Annotation ann)
Converts the Text annotations into a serialized Reader. 
 | 
void | 
ConsoleOutput(String p0)  | 
protected InterMediaSourceDefinition | 
constructMediaSourceDefinition(LibrarySession session,
                              ClassObject classobj)
Constructs an InterMediaSourceDefinition of the desired type. 
 | 
void | 
dispose()
Disposes this instance. 
 | 
void | 
errorOccured(oracle.ord.media.annotator.annotations.Annotation ann,
            Exception e)  | 
protected void | 
extractAnnotationAttributes(oracle.ord.media.annotator.annotations.Annotation ann,
                           InterMediaSourceDefinition def)
Extract Annotation attributes from the specified Annotation. 
 | 
void | 
extractionPerformed(oracle.ord.media.annotator.annotations.Annotation p0)  | 
protected void | 
freeInterMediaCategories(Document doc)
Frees any InterMedia categories that exist onthe specified document. 
 | 
protected String | 
getAnnotationClassName(oracle.ord.media.annotator.annotations.Annotation ann)
Gets Annotation class name. 
 | 
protected String | 
getContentMimeType(Document doc)
Returns the mime type from the specified Document, if it has content. 
 | 
protected InterMediaSourceDefinition | 
getDefFromAnnotation(LibrarySession session,
                    oracle.ord.media.annotator.annotations.Annotation ann)
Gets an InterMediaSourceDefinition from the specified Annotation. 
 | 
protected InterMediaSourceDefinition | 
getProperCategoryDef(LibrarySession session,
                    String descKey)
Gets the proper type of InterMediaSourceDefinition from the specified 
 Annotation key. 
 | 
protected String | 
getTextFromAnnotation(PrintWriter pwriter,
                     oracle.ord.media.annotator.annotations.Annotation ann)
Gets the language from the Annotation. 
 | 
protected void | 
implementAnnotate(Document doc,
                 boolean trimMetadata)
Internal annotation processing for the specified Document. 
 | 
void | 
initialize(LibrarySession session,
          AttributeValueTable avt)
Initializes an InterMediaAnnotator. 
 | 
void | 
insertionPerformed(oracle.ord.media.annotator.annotations.Annotation p0,
                  Connection p1)  | 
void | 
parsePerformed(oracle.ord.media.annotator.annotations.Annotation ann)  | 
void | 
processDocument(Document doc)
Performs annotation processing for the specified Document. 
 | 
protected void | 
setAnnotatorTraceLevel(AttributeValueTable avt)
Sets the Annotator TraceLevel based on the specified Annotator properties. 
 | 
protected void | 
setClassMap(AttributeValueTable avt)
Sets the ClassMap based on the specified Annotator properties. 
 | 
void | 
warningOccured(oracle.ord.media.annotator.annotations.Annotation p0,
              Exception e)  | 
public static final String ANNOTATOR_TRACELEVEL
public static final String INDEXABLE_ATTRIBUTES
public static final String CLASSMAP_VALUES
public static final String ORACLE_HOME
public void initialize(LibrarySession session, AttributeValueTable avt) throws Exception
session - the session contextavt - the Annotator propertiesException - if the operation failsprotected void setClassMap(AttributeValueTable avt) throws IfsException
Converts an array of strings into hashtable entries. The Strings must be of the form "name=value".
avt - the Annotator propertiesIfsException - if the operation failsprotected void setAnnotatorTraceLevel(AttributeValueTable avt) throws Exception
avt - the Annotator propertiesException - if the operation failspublic void dispose()
public void processDocument(Document doc) throws Exception
First attempts to process the document without trimming the metadata. If that fails, a followup attempt is made with trimmed metadata.
doc - the Document to processException - if the operation failspublic void annotate(Document doc, boolean trimMetadata) throws IfsException
doc - the Document to processtrimMetadata - whether to trim metadataException - if the operation failsIfsExceptionprotected void implementAnnotate(Document doc, boolean trimMetadata) throws IfsException
This extracts metadata from the multimedia file and creates InterMediaSourceDefinitions for them.
doc - the Document to processtrimMetadata - whether to trim metadataException - if the operation failsIfsExceptionprotected void freeInterMediaCategories(Document doc) throws IfsException
doc - the document with the InterMedia categoriesIfsException - if the operation failsprotected InterMediaSourceDefinition getDefFromAnnotation(LibrarySession session, oracle.ord.media.annotator.annotations.Annotation ann) throws IfsException
session - the session contextann - the AnnotationIfsException - if the operation failsprotected InterMediaSourceDefinition getProperCategoryDef(LibrarySession session, String descKey) throws IfsException
session - the session contextdescKey - the Annotation keyIfsException - if the operation failsprotected InterMediaSourceDefinition constructMediaSourceDefinition(LibrarySession session, ClassObject classobj) throws IfsException
session - the session contextclassobj - the ClassObject to reference in the definitionIfsException - if the operation failsprotected String getTextFromAnnotation(PrintWriter pwriter, oracle.ord.media.annotator.annotations.Annotation ann) throws IfsException
pwriter - the PrintWriterann - the AnnotationIfsException - if the operation failsprotected void appendIndexableAttributes(PrintWriter pwriter, oracle.ord.media.annotator.annotations.Annotation ann) throws IfsException
pwriter - the PrintWriterann - the AnnotationIfsException - if the operation failsprotected String appendTextTrack(PrintWriter pwriter, oracle.ord.media.annotator.annotations.Annotation ann) throws IfsException
pwriter - the PrintWriterann - the AnnotationIfsException - if the operation failsprotected String getContentMimeType(Document doc) throws IfsException
doc - the documentIfsException - if operation failsprotected void extractAnnotationAttributes(oracle.ord.media.annotator.annotations.Annotation ann,
                                           InterMediaSourceDefinition def)
                                    throws IfsException
ann - the Annotationdef - the InterMediaSource DefinitionIfsException - if operation failsprotected String getAnnotationClassName(oracle.ord.media.annotator.annotations.Annotation ann)
ann - the Annotationpublic void ConsoleOutput(String p0)
ConsoleOutput in interface oracle.ord.media.annotator.listeners.OutputListenerpublic void parsePerformed(oracle.ord.media.annotator.annotations.Annotation ann)
parsePerformed in interface oracle.ord.media.annotator.listeners.AnnListenerpublic void extractionPerformed(oracle.ord.media.annotator.annotations.Annotation p0)
extractionPerformed in interface oracle.ord.media.annotator.listeners.AnnListenerpublic void insertionPerformed(oracle.ord.media.annotator.annotations.Annotation p0,
                               Connection p1)
insertionPerformed in interface oracle.ord.media.annotator.listeners.AnnListenerpublic void errorOccured(oracle.ord.media.annotator.annotations.Annotation ann,
                         Exception e)
errorOccured in interface oracle.ord.media.annotator.listeners.AnnListenerpublic void warningOccured(oracle.ord.media.annotator.annotations.Annotation p0,
                           Exception e)
warningOccured in interface oracle.ord.media.annotator.listeners.AnnListenerCopyright © 2025. All rights reserved.