T
- public abstract class HierarchyBuilder<T>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
HierarchyBuilder.Type
The three types of builders.
|
Modifier and Type | Method and Description |
---|---|
abstract AttributeType.Hierarchy |
build()
Creates a new hierarchy, based on the predefined specification.
|
abstract AttributeType.Hierarchy |
build(java.lang.String[] data)
Creates a new hierarchy, based on the predefined specification.
|
static <T> HierarchyBuilder<T> |
create(java.io.File file)
Loads a builder from a file.
|
static <T> HierarchyBuilder<T> |
create(java.lang.String file)
Loads a builder from a file.
|
HierarchyBuilder.Type |
getType()
Returns the type of builder.
|
abstract int[] |
prepare(java.lang.String[] data)
Prepares the builder.
|
void |
save(java.io.File file)
Saves the specification of this builder to the given file.
|
void |
save(java.lang.String file)
Saves the specification of this builder to the given file.
|
public static <T> HierarchyBuilder<T> create(java.io.File file) throws java.io.IOException
T
- file
- java.io.IOException
public static <T> HierarchyBuilder<T> create(java.lang.String file) throws java.io.IOException
T
- file
- java.io.IOException
public abstract AttributeType.Hierarchy build()
public abstract AttributeType.Hierarchy build(java.lang.String[] data)
data
- public HierarchyBuilder.Type getType()
public abstract int[] prepare(java.lang.String[] data)
data
- public void save(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public void save(java.lang.String file) throws java.io.IOException
file
- java.io.IOException