public abstract class AssemblerBase extends Object implements Assembler
content, defaultModel, documentManager, fileManager, general, infModel, locationMapper, memoryModel, modelSource, ontModel, ontModelSpec, prefixMapping, reasonerFactory, ruleSet, unionModel| Constructor and Description |
|---|
AssemblerBase() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getOptionalClassName(Resource root,
Property classProperty)
Answer the string described by the value of the unique optional
classProperty property of root,
or null if there's no such property. |
static Resource |
getRequiredResource(Resource root,
Property p) |
Object |
open(Assembler a,
Resource root)
Answer
open( a, root, Mode.DEFAULT ). |
abstract Object |
open(Assembler a,
Resource root,
Mode mode)
The core operation: answer a new object constructed according to the
object description hanging from
root, using the assembler
a for any sub-objects. |
Object |
open(Resource root)
Answer
open( this, root, Mode.DEFAULT ). |
Model |
openModel(Resource root)
Answer
(Model) open( this, root, Mode.DEFAULT ), unless
the result cannot be or is not a Model, in which case throw an exception. |
Model |
openModel(Resource root,
Mode mode)
Answer
(Model) open( this, root, mode ), unless
the result cannot be or is not a Model, in which case throw an exception. |
public final Object open(Resource root)
Assembleropen( this, root, Mode.DEFAULT ).public final Object open(Assembler a, Resource root)
Assembleropen( a, root, Mode.DEFAULT ).public abstract Object open(Assembler a, Resource root, Mode mode)
Assemblerroot, using the assembler
a for any sub-objects. Use mode to decide
if persistent objects are to be re-used or created; this mode is passed down
to all sub-object construction.public Model openModel(Resource root, Mode mode)
Assembler(Model) open( this, root, mode ), unless
the result cannot be or is not a Model, in which case throw an exception.public Model openModel(Resource root)
Assembler(Model) open( this, root, Mode.DEFAULT ), unless
the result cannot be or is not a Model, in which case throw an exception.public static String getOptionalClassName(Resource root, Property classProperty)
classProperty property of root,
or null if there's no such property. The value may be a URI, in which case
it must be a java: URI with content the class name; or it may
be a literal, in which case its lexical form is its class name; otherwise,
BOOM.Licenced under the Apache License, Version 2.0