uk.ac.gla.dcs.renaissance.ir
Class DefaultDocumentFactory

java.lang.Object
  extended by it.unimi.dsi.mg4j.document.AbstractDocumentFactory
      extended by it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
          extended by uk.ac.gla.dcs.renaissance.ir.DefaultDocumentFactory
All Implemented Interfaces:
it.unimi.dsi.lang.FlyweightPrototype<it.unimi.dsi.mg4j.document.DocumentFactory>, it.unimi.dsi.mg4j.document.DocumentFactory, Serializable
Direct Known Subclasses:
XMLPOSDocumentFactory

public abstract class DefaultDocumentFactory
extends it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory

See Also:
Serialized Form

Nested Class Summary
static class DefaultDocumentFactory.Field
           
 
Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory.MetadataKeys
 
Nested classes/interfaces inherited from interface it.unimi.dsi.mg4j.document.DocumentFactory
it.unimi.dsi.mg4j.document.DocumentFactory.FieldType
 
Field Summary
 
Fields inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
defaultMetadata
 
Constructor Summary
DefaultDocumentFactory()
           
DefaultDocumentFactory(it.unimi.dsi.util.Properties properties)
           
DefaultDocumentFactory(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> defaultMetadata)
           
DefaultDocumentFactory(String[] property)
           
 
Method Summary
 int fieldIndex(String fieldName)
           
 String fieldName(int field)
           
 it.unimi.dsi.mg4j.document.DocumentFactory.FieldType fieldType(int field)
           
abstract  DefaultDocumentFactory.Field[] getFields()
           
 int numberOfFields()
           
 
Methods inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
ensureJustOne, getInstance, getInstance, getInstance, getInstance, parseProperties, parseProperties, parseProperty, resolve, resolve, resolveNotNull, sameKey
 
Methods inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentFactory
ensureFieldIndex, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.mg4j.document.DocumentFactory
copy, getDocument
 

Constructor Detail

DefaultDocumentFactory

public DefaultDocumentFactory()

DefaultDocumentFactory

public DefaultDocumentFactory(it.unimi.dsi.util.Properties properties)
                       throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

DefaultDocumentFactory

public DefaultDocumentFactory(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> defaultMetadata)

DefaultDocumentFactory

public DefaultDocumentFactory(String[] property)
                       throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException
Method Detail

getFields

public abstract DefaultDocumentFactory.Field[] getFields()

fieldIndex

public int fieldIndex(String fieldName)

fieldName

public String fieldName(int field)

fieldType

public it.unimi.dsi.mg4j.document.DocumentFactory.FieldType fieldType(int field)

numberOfFields

public int numberOfFields()


Copyright © 2011. All Rights Reserved.