Class ArcheTextFactory
java.lang.Object
com.blackrook.archetext.ArcheTextFactory
Factory class for generating
ArcheTextObjects.- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ArcheTextObjectCreates a new ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type.static <T> ArcheTextObjectCreates a new default ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type.static <T> ArcheTextObjectcreate(T value) Creates a new anonymous ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type.
-
Constructor Details
-
ArcheTextFactory
public ArcheTextFactory()
-
-
Method Details
-
create
Creates a new anonymous ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type. Primitives, boxed primitives, Sets, and Arrays are not acceptable.- Type Parameters:
T- the input object type.- Parameters:
value- the object value to convert.- Returns:
- a new ArcheText object that represents the input object.
- Throws:
IllegalArgumentException- if value is not a POJO nor map.
-
create
Creates a new default ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type. Primitives, boxed primitives, Sets, and Arrays are not acceptable.- Type Parameters:
T- the input object type.- Parameters:
type- the object type.value- the object value to convert.- Returns:
- a new ArcheText object that represents the input object.
- Throws:
IllegalArgumentException- if value is not a POJO nor map.
-
create
Creates a new ArcheTextObject using a POJO (Plain Ol' Java Object) or Map type. Primitives, boxed primitives, Sets, and Arrays are not acceptable.- Type Parameters:
T- the input object type.- Parameters:
type- the object type.name- the object name.value- the object value to convert.- Returns:
- a new ArcheText object that represents the input object.
- Throws:
IllegalArgumentException- if value is not a POJO nor map.
-