|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspark.data.io.TypeFactorySimple
public class TypeFactorySimple
This TypeFactory will always use SObj and SArray for its objects. However, for SObj values it will put the external type name into a "type:" attribute.
Constructor Summary | |
---|---|
TypeFactorySimple()
|
Method Summary | |
---|---|
java.lang.String |
externalTypeName(SO obj)
This will return the externalTypeName to be used to represent the object externally. |
SA |
makeArray()
SAs are not typed generally. |
SO |
makeObject(java.lang.String externalTypeName)
Given an external type name this will create an SO of the correct internal type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeFactorySimple()
Method Detail |
---|
public SO makeObject(java.lang.String externalTypeName)
TypeFactory
makeObject
in interface TypeFactory
externalTypeName
- the name used in the external representation
for an object type.
public SA makeArray()
TypeFactory
makeArray
in interface TypeFactory
public java.lang.String externalTypeName(SO obj)
TypeFactory
externalTypeName
in interface TypeFactory
obj
- the object whose type is to be represented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |