|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.core.Model
public final class Model
Constructor Summary | |
---|---|
Model(String name)
Create a new model. |
Method Summary | |
---|---|
static Model |
getDefault()
Returns the default model (if only one defined) |
File |
getFile(String path)
Returns a file given a path relative to this model. |
Properties |
getProperties(String path)
Load a properties file from the package. |
Templates |
getTemplates(String path)
Returns templates from this model, falling back on the built-in templates. |
static boolean |
isDefined(String name)
Indicates whether the model exists. |
void |
load()
Loads the model definition to know what the pipelines, steps and parameters are. |
static void |
main(String[] args)
|
String |
name()
|
void |
toXML(XMLWriter xml)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Model(String name)
Method Detail |
---|
public String name()
public void load() throws IOException, OXException
IOException
OXException
public File getFile(String path)
path
- the relative path a file within the model
public Properties getProperties(String path)
path
- the path to the properties file.
null
.public Templates getTemplates(String path) throws IOException, TransformerConfigurationException
path
- the path to the template
null
.
IOException
TransformerConfigurationException
public void toXML(XMLWriter xml) throws IOException
toXML
in interface XMLWritable
IOException
public static boolean isDefined(String name)
name
-
public static Model getDefault()
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |