public class JavaFactory extends AbstractFactory
Constructor and Description |
---|
JavaFactory()
Creates a JavaFactory.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createExternalObject(java.lang.String value,
java.lang.String type)
Creates an instance of an uninterpreted external type, with the given
value.
|
java.lang.Object |
createObject(java.lang.String value,
java.lang.String type)
Creates an instance of any kind of Java Object with the given printed
representation and Java type.
|
protected java.lang.Class<?> |
findClassDefinition(java.lang.String type)
Finds the Java class definition for an external user-defined type.
|
void |
useSourcePackage(java.lang.String packageInfo)
Adds a user-defined source package to the Java package locations known
by this JavaFactory.
|
create, createDefaultObject, createListObject, createMapObject, createPairObject, createSetObject, createSimpleObject, error, makeEntityId, safeIndexOf, safeSplit
public JavaFactory()
public void useSourcePackage(java.lang.String packageInfo)
packageInfo
- a package location in the Java style.public java.lang.Object createObject(java.lang.String value, java.lang.String type)
value
- the value, as a String.type
- the Java type, as a String.protected java.lang.Class<?> findClassDefinition(java.lang.String type) throws java.lang.ClassNotFoundException
type
- the simple name of the Java class type.java.lang.ClassNotFoundException
- if no class definition is found.protected java.lang.Object createExternalObject(java.lang.String value, java.lang.String type)
createExternalObject
in class AbstractFactory
value
- the identifier for this object, as a String.type
- the Java type of this object, as a String.