Class AssemblerBase
- java.lang.Object
-
- org.apache.jena.assembler.assemblers.AssemblerBase
-
- All Implemented Interfaces:
Assembler
- Direct Known Subclasses:
AssemblerGroup
,ContentAssembler
,DocumentManagerAssembler
,FileManagerAssembler
,LocationMapperAssembler
,ModelAssembler
,ModelSourceAssembler
,OntModelSpecAssembler
,PrefixMappingAssembler
,ReasonerFactoryAssembler
,RuleSetAssembler
public abstract class AssemblerBase extends java.lang.Object implements Assembler
-
-
Field Summary
-
Fields inherited from interface org.apache.jena.assembler.Assembler
content, defaultModel, documentManager, fileManager, general, infModel, locationMapper, memoryModel, modelSource, ontModel, ontModelSpec, prefixMapping, reasonerFactory, ruleSet, unionModel
-
-
Constructor Summary
Constructors Constructor Description AssemblerBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getOptionalClassName(Resource root, Property classProperty)
Answer the string described by the value of the unique optionalclassProperty
property ofroot
, or null if there's no such property.static Resource
getRequiredResource(Resource root, Property p)
java.lang.Object
open(Assembler a, Resource root)
Answeropen( a, root, Mode.DEFAULT )
.abstract java.lang.Object
open(Assembler a, Resource root, Mode mode)
The core operation: answer a new object constructed according to the object description hanging fromroot
, using the assemblera
for any sub-objects.java.lang.Object
open(Resource root)
Answeropen( 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.
-
-
-
Method Detail
-
open
public final java.lang.Object open(Resource root)
Description copied from interface:Assembler
Answeropen( this, root, Mode.DEFAULT )
.
-
open
public final java.lang.Object open(Assembler a, Resource root)
Description copied from interface:Assembler
Answeropen( a, root, Mode.DEFAULT )
.
-
open
public abstract java.lang.Object open(Assembler a, Resource root, Mode mode)
Description copied from interface:Assembler
The core operation: answer a new object constructed according to the object description hanging fromroot
, using the assemblera
for any sub-objects. Usemode
to decide if persistent objects are to be re-used or created; this mode is passed down to all sub-object construction.
-
openModel
public Model openModel(Resource root, Mode mode)
Description copied from interface:Assembler
Answer(Model) open( this, root, mode )
, unless the result cannot be or is not a Model, in which case throw an exception.
-
openModel
public Model openModel(Resource root)
Description copied from interface:Assembler
Answer(Model) open( this, root, Mode.DEFAULT )
, unless the result cannot be or is not a Model, in which case throw an exception.
-
getOptionalClassName
public static java.lang.String getOptionalClassName(Resource root, Property classProperty)
Answer the string described by the value of the unique optionalclassProperty
property ofroot
, 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.
-
-