|
|||||||||
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.MappingFactory
public class MappingFactory
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 MappingFactory . |
private static MappingFactory |
mappingFactory
A prototype for a Mapping factory such that only one instance class can ever exist. |
private java.util.List |
mappingList
|
Constructor Summary | |
---|---|
private |
MappingFactory()
Constructs a MappingFactory object. |
Method Summary | |
---|---|
Mapping |
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 MappingFactory |
getMappingFactory()
Returns MappingFactory object; only
one MappingFactory instance can
exist. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns a String object representing this
MappingFactory . |
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
MappingFactory
.
private static MappingFactory mappingFactory
private java.util.List mappingList
Constructor Detail |
---|
private MappingFactory()
MappingFactory
object.
Method Detail |
---|
public Mapping 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
MappingFactory
.
toString
in class java.lang.Object
public static MappingFactory getMappingFactory()
MappingFactory
object; only
one MappingFactory
instance can
exist.
MappingFactory
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 |