|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.nrl.parser.model.PrimitiveTypeFactory
public class PrimitiveTypeFactory
A factory singleton that returns data types corresponding to the internal NRL data types.
Call getInstance() to get a handle on the singleton.
| Method Summary | |
|---|---|
List<String> |
getAllTypeNames()
Return a list of all built-in type names |
Collection<IDataType> |
getAllTypes()
|
static PrimitiveTypeFactory |
getInstance()
|
NRLDataType |
getNrlType(String name)
Return the NRL data type of a built-in type, given its name |
IDataType |
getType(NRLDataType nrlType)
Return a data type object corresponding to the given NRL type. |
IDataType |
getType(String name)
Return a data type by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PrimitiveTypeFactory getInstance()
public List<String> getAllTypeNames()
public Collection<IDataType> getAllTypes()
public IDataType getType(NRLDataType nrlType)
NRLDataType.BOOLEAN
NRLDataType.STRING
NRLDataType.DECIMAL
NRLDataType.INTEGER
NRLDataType.DATE
NRLDataType.BOOLEAN
NRLDataType.VOID
nrlType -
public NRLDataType getNrlType(String name)
name - the name
NRLDataType.UNKNOWN if not possiblepublic IDataType getType(String name)
name - the type name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||