|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.itc.irst.tcc.sre.kernel.expl.ContextMappingFactory
public class ContextMappingFactory
Factory class for vending standard Mapping
objects. Wherever possible, this factory will hand out
references to shared Mapping
instances.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the Logger instance named ContextMappingFactory . |
private static ContextMappingFactory |
mappingFactory
A prototype for a Mapping factory such that only one instance class can ever exist. |
private java.util.List |
mappingList
|
Constructor Summary | |
---|---|
private |
ContextMappingFactory()
Constructs a ContextMappingFactory object. |
Method Summary | |
---|---|
static ContextMappingFactory |
getContextMappingFactory()
Returns ContextMappingFactory object; only
one ContextMappingFactory instance can
exist. |
ContextMapping |
getInstance(java.lang.String name)
Returns the id of the specified Mapping and adds the Mapping to the lexicon if it is not present yet. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns a String object representing this
ContextMappingFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
ContextMappingFactory
.
private static ContextMappingFactory mappingFactory
private java.util.List mappingList
Constructor Detail |
---|
private ContextMappingFactory()
ContextMappingFactory
object.
Method Detail |
---|
public ContextMapping getInstance(java.lang.String name) throws MappingNotFoundException
If the
lexicon is read only, mappings not already present in the
lexicon will not be added and a null
id
will be returned.
name
- the string representation of the Mapping.
MappingNotFoundException
public java.lang.String toString()
String
object representing this
ContextMappingFactory
.
toString
in class java.lang.Object
public static ContextMappingFactory getContextMappingFactory()
ContextMappingFactory
object; only
one ContextMappingFactory
instance can
exist.
ContextMappingFactory
objectpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |