public enum TabulaModelHandler extends java.lang.Enum<TabulaModelHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TabulaCubeContainer> |
getAllCubes(TabulaModelContainer model) |
TabulaCubeContainer |
getCubeByIdentifier(java.lang.String identifier,
TabulaModelContainer model) |
TabulaCubeContainer |
getCubeByName(java.lang.String name,
TabulaModelContainer model) |
TabulaModelContainer |
loadTabulaModel(java.io.InputStream stream)
Load a
TabulaModelContainer from the model.json input stream. |
TabulaModelContainer |
loadTabulaModel(java.lang.String path)
Load a
TabulaModelContainer from the path. |
static TabulaModelHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TabulaModelHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TabulaModelHandler INSTANCE
public static TabulaModelHandler[] values()
for (TabulaModelHandler c : TabulaModelHandler.values()) System.out.println(c);
public static TabulaModelHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic TabulaModelContainer loadTabulaModel(java.lang.String path) throws java.io.IOException
TabulaModelContainer from the path. A slash will be added if it isn't in the path already.path - the model pathTabulaModelContainer instancejava.io.IOException - if the file can't be foundpublic TabulaModelContainer loadTabulaModel(java.io.InputStream stream)
TabulaModelContainer from the model.json input stream.stream - the model.json input streamTabulaModelContainer instancepublic TabulaCubeContainer getCubeByName(java.lang.String name, TabulaModelContainer model)
name - the cube namemodel - the model containerpublic TabulaCubeContainer getCubeByIdentifier(java.lang.String identifier, TabulaModelContainer model)
identifier - the cube identifiermodel - the model containerpublic java.util.List<TabulaCubeContainer> getAllCubes(TabulaModelContainer model)
model - the model container