|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.adtech.jastor.ThingFactory
ibspan.tss.datamodel.ontology.DataModelFactory
public class DataModelFactory
Factory for instantiating objects for ontology classes in the DataModel ontology. The get methods leave the model unchanged and return a Java view of the object in the model. The create methods may add certain baseline properties to the model such as rdf:type and any properties with hasValue restrictions.
(URI: http://www.ibspan.waw.pl/tss/DataModel)
| Field Summary |
|---|
| Fields inherited from class com.ibm.adtech.jastor.ThingFactory |
|---|
copyright, listeners, objects |
| Constructor Summary | |
|---|---|
DataModelFactory()
|
|
| Method Summary | |
|---|---|
static ErrorMessage |
createErrorMessage(Resource resource,
Model model)
Create a new instance of ErrorMessage. |
static ErrorMessage |
createErrorMessage(String uri,
Model model)
Create a new instance of ErrorMessage. |
static Link |
createLink(Resource resource,
Model model)
Create a new instance of Link. |
static Link |
createLink(String uri,
Model model)
Create a new instance of Link. |
static Menu |
createMenu(Resource resource,
Model model)
Create a new instance of Menu. |
static Menu |
createMenu(String uri,
Model model)
Create a new instance of Menu. |
static List |
getAllErrorMessage(Model model)
Return an instance of ErrorMessage for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#ErrorMessage |
static List |
getAllLink(Model model)
Return an instance of Link for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#Link |
static List |
getAllMenu(Model model)
Return an instance of Menu for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#Menu |
static ErrorMessage |
getErrorMessage(Resource resource,
Model model)
Create a new instance of ErrorMessage. |
static ErrorMessage |
getErrorMessage(String uri,
Model model)
Create a new instance of ErrorMessage. |
static Link |
getLink(Resource resource,
Model model)
Create a new instance of Link. |
static Link |
getLink(String uri,
Model model)
Create a new instance of Link. |
static Menu |
getMenu(Resource resource,
Model model)
Create a new instance of Menu. |
static Menu |
getMenu(String uri,
Model model)
Create a new instance of Menu. |
static com.ibm.adtech.jastor.Thing |
getThing(Resource res,
Model model)
Returns an instance of an interface for the given Resource. |
static com.ibm.adtech.jastor.Thing |
getThing(String uri,
Model model)
Returns an instance of an interface for the given Resource URI. |
static List |
listCompatibleInterfaces(Resource type)
Return a list of compatible interfaces for the given type. |
| Methods inherited from class com.ibm.adtech.jastor.ThingFactory |
|---|
clearCache, clearCaches, createThing, createThing, registerThing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataModelFactory()
| Method Detail |
|---|
public static Menu createMenu(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the Menumodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Menu createMenu(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the Menumodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Menu getMenu(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the Menumodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Menu getMenu(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the Menumodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static List getAllMenu(Model model)
throws com.ibm.adtech.jastor.JastorException
model - the Jena Model
com.ibm.adtech.jastor.JastorException
public static Link createLink(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the Linkmodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Link createLink(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the Linkmodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Link getLink(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the Linkmodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static Link getLink(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the Linkmodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static List getAllLink(Model model)
throws com.ibm.adtech.jastor.JastorException
model - the Jena Model
com.ibm.adtech.jastor.JastorException
public static ErrorMessage createErrorMessage(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the ErrorMessagemodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static ErrorMessage createErrorMessage(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the ErrorMessagemodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static ErrorMessage getErrorMessage(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
uri - The uri of the ErrorMessagemodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static ErrorMessage getErrorMessage(Resource resource,
Model model)
throws com.ibm.adtech.jastor.JastorException
resource - The resource of the ErrorMessagemodel - the Jena Model.
com.ibm.adtech.jastor.JastorException
public static List getAllErrorMessage(Model model)
throws com.ibm.adtech.jastor.JastorException
model - the Jena Model
com.ibm.adtech.jastor.JastorException
public static com.ibm.adtech.jastor.Thing getThing(Resource res,
Model model)
throws com.ibm.adtech.jastor.JastorException
com.ibm.adtech.jastor.JastorException
public static com.ibm.adtech.jastor.Thing getThing(String uri,
Model model)
throws com.ibm.adtech.jastor.JastorException
com.ibm.adtech.jastor.JastorExceptionpublic static List listCompatibleInterfaces(Resource type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||