ibspan.tss.layout.ontology.datamodel
Class DataModelFactory

java.lang.Object
  extended by com.ibm.adtech.jastor.ThingFactory
      extended by ibspan.tss.layout.ontology.datamodel.DataModelFactory

public class DataModelFactory
extends com.ibm.adtech.jastor.ThingFactory

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 FormLink createFormLink(Resource resource, Model model)
          Create a new instance of FormLink.
static FormLink createFormLink(String uri, Model model)
          Create a new instance of FormLink.
static InternalLink createInternalLink(Resource resource, Model model)
          Create a new instance of InternalLink.
static InternalLink createInternalLink(String uri, Model model)
          Create a new instance of InternalLink.
static LayoutElement createLayoutElement(Resource resource, Model model)
          Create a new instance of LayoutElement.
static LayoutElement createLayoutElement(String uri, Model model)
          Create a new instance of LayoutElement.
static LayoutStructure createLayoutStructure(Resource resource, Model model)
          Create a new instance of LayoutStructure.
static LayoutStructure createLayoutStructure(String uri, Model model)
          Create a new instance of LayoutStructure.
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 MenuLink createMenuLink(Resource resource, Model model)
          Create a new instance of MenuLink.
static MenuLink createMenuLink(String uri, Model model)
          Create a new instance of MenuLink.
static UserContext createUserContext(Resource resource, Model model)
          Create a new instance of UserContext.
static UserContext createUserContext(String uri, Model model)
          Create a new instance of UserContext.
static List getAllFormLink(Model model)
          Return an instance of FormLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#FormLink
static List getAllInternalLink(Model model)
          Return an instance of InternalLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#InternalLink
static List getAllLayoutElement(Model model)
          Return an instance of LayoutElement for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#LayoutElement
static List getAllLayoutStructure(Model model)
          Return an instance of LayoutStructure for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#LayoutStructure
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 List getAllMenuLink(Model model)
          Return an instance of MenuLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#MenuLink
static List getAllUserContext(Model model)
          Return an instance of UserContext for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#UserContext
static FormLink getCheckLogin1(Model model)
          Get an CheckLogin1 individual.
static FormLink getCheckRegister1(Model model)
          Get an CheckRegister1 individual.
static FormLink getCheckRegister2(Model model)
          Get an CheckRegister2 individual.
static Menu getCommonMenu(Model model)
          Get an CommonMenu individual.
static MenuLink getDefineSearch(Model model)
          Get an DefineSearch individual.
static Menu getDefineSearchMenu(Model model)
          Get an DefineSearchMenu individual.
static LayoutStructure getDefineSearchStructure(Model model)
          Get an DefineSearchStructure individual.
static Menu getDetailsMenu(Model model)
          Get an DetailsMenu individual.
static LayoutStructure getDetailsStructure(Model model)
          Get an DetailsStructure individual.
static FormLink getFormLink(Resource resource, Model model)
          Create a new instance of FormLink.
static FormLink getFormLink(String uri, Model model)
          Create a new instance of FormLink.
static InternalLink getInternalLink(Resource resource, Model model)
          Create a new instance of InternalLink.
static InternalLink getInternalLink(String uri, Model model)
          Create a new instance of InternalLink.
static LayoutElement getLayoutElement(Resource resource, Model model)
          Create a new instance of LayoutElement.
static LayoutElement getLayoutElement(String uri, Model model)
          Create a new instance of LayoutElement.
static LayoutStructure getLayoutStructure(Resource resource, Model model)
          Create a new instance of LayoutStructure.
static LayoutStructure getLayoutStructure(String uri, Model model)
          Create a new instance of LayoutStructure.
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 MenuLink getLogin1(Model model)
          Get an Login1 individual.
static LayoutStructure getLogin1Structure(Model model)
          Get an Login1Structure individual.
static Menu getLoginMenu(Model model)
          Get an LoginMenu individual.
static InternalLink getLoginSuccess(Model model)
          Get an LoginSuccess individual.
static Menu getLoginSuccessMenu(Model model)
          Get an LoginSuccessMenu individual.
static LayoutStructure getLoginSuccessStructure(Model model)
          Get an LoginSuccessStructure individual.
static MenuLink getLogout(Model model)
          Get an Logout individual.
static LayoutStructure getLogoutStructure(Model model)
          Get an LogoutStructure individual.
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 MenuLink getMenuLink(Resource resource, Model model)
          Create a new instance of MenuLink.
static MenuLink getMenuLink(String uri, Model model)
          Create a new instance of MenuLink.
static MenuLink getRegister1(Model model)
          Get an Register1 individual.
static LayoutStructure getRegister1Structure(Model model)
          Get an Register1Structure individual.
static InternalLink getRegister2(Model model)
          Get an Register2 individual.
static LayoutStructure getRegister2Structure(Model model)
          Get an Register2Structure individual.
static InternalLink getRegisterSuccess(Model model)
          Get an RegisterSuccess individual.
static LayoutStructure getRegisterSuccessStructure(Model model)
          Get an RegisterSuccessStructure individual.
static Menu getResultsMenu(Model model)
          Get an ResultsMenu individual.
static LayoutStructure getResultsStructure(Model model)
          Get an ResultsStructure individual.
static FormLink getSearch(Model model)
          Get an Search individual.
static MenuLink getShowBackedUpResults(Model model)
          Get an ShowBackedUpResults individual.
static MenuLink getShowDetails(Model model)
          Get an ShowDetails individual.
static InternalLink getShowFreshResults(Model model)
          Get an ShowFreshResults individual.
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 UserContext getUserContext(Resource resource, Model model)
          Create a new instance of UserContext.
static UserContext getUserContext(String uri, Model model)
          Create a new instance of UserContext.
static MenuLink getWelcome(Model model)
          Get an Welcome individual.
static Menu getWelcomeMenu(Model model)
          Get an WelcomeMenu individual.
static LayoutStructure getWelcomeStructure(Model model)
          Get an WelcomeStructure individual.
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

DataModelFactory

public DataModelFactory()
Method Detail

createInternalLink

public static InternalLink createInternalLink(Resource resource,
                                              Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of InternalLink. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the InternalLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createInternalLink

public static InternalLink createInternalLink(String uri,
                                              Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of InternalLink. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the InternalLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getInternalLink

public static InternalLink getInternalLink(String uri,
                                           Model model)
                                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of InternalLink. Leaves the model unchanged.

Parameters:
uri - The uri of the InternalLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getInternalLink

public static InternalLink getInternalLink(Resource resource,
                                           Model model)
                                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of InternalLink. Leaves the model unchanged.

Parameters:
resource - The resource of the InternalLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLoginSuccess

public static InternalLink getLoginSuccess(Model model)
                                    throws com.ibm.adtech.jastor.JastorException
Get an LoginSuccess individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of InternalLink.
Throws:
com.ibm.adtech.jastor.JastorException

getRegister2

public static InternalLink getRegister2(Model model)
                                 throws com.ibm.adtech.jastor.JastorException
Get an Register2 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of InternalLink.
Throws:
com.ibm.adtech.jastor.JastorException

getShowFreshResults

public static InternalLink getShowFreshResults(Model model)
                                        throws com.ibm.adtech.jastor.JastorException
Get an ShowFreshResults individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of InternalLink.
Throws:
com.ibm.adtech.jastor.JastorException

getRegisterSuccess

public static InternalLink getRegisterSuccess(Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Get an RegisterSuccess individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of InternalLink.
Throws:
com.ibm.adtech.jastor.JastorException

getAllInternalLink

public static List getAllInternalLink(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Return an instance of InternalLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#InternalLink

Parameters:
model - the Jena Model
Returns:
a List of InternalLink
Throws:
com.ibm.adtech.jastor.JastorException

createMenuLink

public static MenuLink createMenuLink(Resource resource,
                                      Model model)
                               throws com.ibm.adtech.jastor.JastorException
Create a new instance of MenuLink. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the MenuLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createMenuLink

public static MenuLink createMenuLink(String uri,
                                      Model model)
                               throws com.ibm.adtech.jastor.JastorException
Create a new instance of MenuLink. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the MenuLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getMenuLink

public static MenuLink getMenuLink(String uri,
                                   Model model)
                            throws com.ibm.adtech.jastor.JastorException
Create a new instance of MenuLink. Leaves the model unchanged.

Parameters:
uri - The uri of the MenuLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getMenuLink

public static MenuLink getMenuLink(Resource resource,
                                   Model model)
                            throws com.ibm.adtech.jastor.JastorException
Create a new instance of MenuLink. Leaves the model unchanged.

Parameters:
resource - The resource of the MenuLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getShowBackedUpResults

public static MenuLink getShowBackedUpResults(Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Get an ShowBackedUpResults individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getLogin1

public static MenuLink getLogin1(Model model)
                          throws com.ibm.adtech.jastor.JastorException
Get an Login1 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getDefineSearch

public static MenuLink getDefineSearch(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an DefineSearch individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getWelcome

public static MenuLink getWelcome(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Get an Welcome individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getLogout

public static MenuLink getLogout(Model model)
                          throws com.ibm.adtech.jastor.JastorException
Get an Logout individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getShowDetails

public static MenuLink getShowDetails(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an ShowDetails individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getRegister1

public static MenuLink getRegister1(Model model)
                             throws com.ibm.adtech.jastor.JastorException
Get an Register1 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of MenuLink.
Throws:
com.ibm.adtech.jastor.JastorException

getAllMenuLink

public static List getAllMenuLink(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Return an instance of MenuLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#MenuLink

Parameters:
model - the Jena Model
Returns:
a List of MenuLink
Throws:
com.ibm.adtech.jastor.JastorException

createMenu

public static Menu createMenu(Resource resource,
                              Model model)
                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of Menu. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the Menu
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createMenu

public static Menu createMenu(String uri,
                              Model model)
                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of Menu. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the Menu
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getMenu

public static Menu getMenu(String uri,
                           Model model)
                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of Menu. Leaves the model unchanged.

Parameters:
uri - The uri of the Menu
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getMenu

public static Menu getMenu(Resource resource,
                           Model model)
                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of Menu. Leaves the model unchanged.

Parameters:
resource - The resource of the Menu
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getDefineSearchMenu

public static Menu getDefineSearchMenu(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an DefineSearchMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getResultsMenu

public static Menu getResultsMenu(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Get an ResultsMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getWelcomeMenu

public static Menu getWelcomeMenu(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Get an WelcomeMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getLoginSuccessMenu

public static Menu getLoginSuccessMenu(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an LoginSuccessMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getCommonMenu

public static Menu getCommonMenu(Model model)
                          throws com.ibm.adtech.jastor.JastorException
Get an CommonMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getLoginMenu

public static Menu getLoginMenu(Model model)
                         throws com.ibm.adtech.jastor.JastorException
Get an LoginMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getDetailsMenu

public static Menu getDetailsMenu(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Get an DetailsMenu individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of Menu.
Throws:
com.ibm.adtech.jastor.JastorException

getAllMenu

public static List getAllMenu(Model model)
                       throws com.ibm.adtech.jastor.JastorException
Return an instance of Menu for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#Menu

Parameters:
model - the Jena Model
Returns:
a List of Menu
Throws:
com.ibm.adtech.jastor.JastorException

createLink

public static Link createLink(Resource resource,
                              Model model)
                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of Link. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the Link
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createLink

public static Link createLink(String uri,
                              Model model)
                       throws com.ibm.adtech.jastor.JastorException
Create a new instance of Link. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the Link
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLink

public static Link getLink(String uri,
                           Model model)
                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of Link. Leaves the model unchanged.

Parameters:
uri - The uri of the Link
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLink

public static Link getLink(Resource resource,
                           Model model)
                    throws com.ibm.adtech.jastor.JastorException
Create a new instance of Link. Leaves the model unchanged.

Parameters:
resource - The resource of the Link
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getAllLink

public static List getAllLink(Model model)
                       throws com.ibm.adtech.jastor.JastorException
Return an instance of Link for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#Link

Parameters:
model - the Jena Model
Returns:
a List of Link
Throws:
com.ibm.adtech.jastor.JastorException

createFormLink

public static FormLink createFormLink(Resource resource,
                                      Model model)
                               throws com.ibm.adtech.jastor.JastorException
Create a new instance of FormLink. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the FormLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createFormLink

public static FormLink createFormLink(String uri,
                                      Model model)
                               throws com.ibm.adtech.jastor.JastorException
Create a new instance of FormLink. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the FormLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getFormLink

public static FormLink getFormLink(String uri,
                                   Model model)
                            throws com.ibm.adtech.jastor.JastorException
Create a new instance of FormLink. Leaves the model unchanged.

Parameters:
uri - The uri of the FormLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getFormLink

public static FormLink getFormLink(Resource resource,
                                   Model model)
                            throws com.ibm.adtech.jastor.JastorException
Create a new instance of FormLink. Leaves the model unchanged.

Parameters:
resource - The resource of the FormLink
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getCheckRegister1

public static FormLink getCheckRegister1(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Get an CheckRegister1 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of FormLink.
Throws:
com.ibm.adtech.jastor.JastorException

getCheckLogin1

public static FormLink getCheckLogin1(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an CheckLogin1 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of FormLink.
Throws:
com.ibm.adtech.jastor.JastorException

getCheckRegister2

public static FormLink getCheckRegister2(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Get an CheckRegister2 individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of FormLink.
Throws:
com.ibm.adtech.jastor.JastorException

getSearch

public static FormLink getSearch(Model model)
                          throws com.ibm.adtech.jastor.JastorException
Get an Search individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of FormLink.
Throws:
com.ibm.adtech.jastor.JastorException

getAllFormLink

public static List getAllFormLink(Model model)
                           throws com.ibm.adtech.jastor.JastorException
Return an instance of FormLink for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#FormLink

Parameters:
model - the Jena Model
Returns:
a List of FormLink
Throws:
com.ibm.adtech.jastor.JastorException

createLayoutElement

public static LayoutElement createLayoutElement(Resource resource,
                                                Model model)
                                         throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutElement. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the LayoutElement
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createLayoutElement

public static LayoutElement createLayoutElement(String uri,
                                                Model model)
                                         throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutElement. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the LayoutElement
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLayoutElement

public static LayoutElement getLayoutElement(String uri,
                                             Model model)
                                      throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutElement. Leaves the model unchanged.

Parameters:
uri - The uri of the LayoutElement
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLayoutElement

public static LayoutElement getLayoutElement(Resource resource,
                                             Model model)
                                      throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutElement. Leaves the model unchanged.

Parameters:
resource - The resource of the LayoutElement
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getAllLayoutElement

public static List getAllLayoutElement(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Return an instance of LayoutElement for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#LayoutElement

Parameters:
model - the Jena Model
Returns:
a List of LayoutElement
Throws:
com.ibm.adtech.jastor.JastorException

createLayoutStructure

public static LayoutStructure createLayoutStructure(Resource resource,
                                                    Model model)
                                             throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutStructure. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the LayoutStructure
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createLayoutStructure

public static LayoutStructure createLayoutStructure(String uri,
                                                    Model model)
                                             throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutStructure. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the LayoutStructure
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLayoutStructure

public static LayoutStructure getLayoutStructure(String uri,
                                                 Model model)
                                          throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutStructure. Leaves the model unchanged.

Parameters:
uri - The uri of the LayoutStructure
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getLayoutStructure

public static LayoutStructure getLayoutStructure(Resource resource,
                                                 Model model)
                                          throws com.ibm.adtech.jastor.JastorException
Create a new instance of LayoutStructure. Leaves the model unchanged.

Parameters:
resource - The resource of the LayoutStructure
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getRegister2Structure

public static LayoutStructure getRegister2Structure(Model model)
                                             throws com.ibm.adtech.jastor.JastorException
Get an Register2Structure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getDetailsStructure

public static LayoutStructure getDetailsStructure(Model model)
                                           throws com.ibm.adtech.jastor.JastorException
Get an DetailsStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getLogin1Structure

public static LayoutStructure getLogin1Structure(Model model)
                                          throws com.ibm.adtech.jastor.JastorException
Get an Login1Structure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getDefineSearchStructure

public static LayoutStructure getDefineSearchStructure(Model model)
                                                throws com.ibm.adtech.jastor.JastorException
Get an DefineSearchStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getLoginSuccessStructure

public static LayoutStructure getLoginSuccessStructure(Model model)
                                                throws com.ibm.adtech.jastor.JastorException
Get an LoginSuccessStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getRegisterSuccessStructure

public static LayoutStructure getRegisterSuccessStructure(Model model)
                                                   throws com.ibm.adtech.jastor.JastorException
Get an RegisterSuccessStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getWelcomeStructure

public static LayoutStructure getWelcomeStructure(Model model)
                                           throws com.ibm.adtech.jastor.JastorException
Get an WelcomeStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getLogoutStructure

public static LayoutStructure getLogoutStructure(Model model)
                                          throws com.ibm.adtech.jastor.JastorException
Get an LogoutStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getRegister1Structure

public static LayoutStructure getRegister1Structure(Model model)
                                             throws com.ibm.adtech.jastor.JastorException
Get an Register1Structure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getResultsStructure

public static LayoutStructure getResultsStructure(Model model)
                                           throws com.ibm.adtech.jastor.JastorException
Get an ResultsStructure individual. If individual does not exist in the model it is created by adding rdf:type property and all other properties forming this individual.

Parameters:
model - The Jena Model.
Returns:
Instance of LayoutStructure.
Throws:
com.ibm.adtech.jastor.JastorException

getAllLayoutStructure

public static List getAllLayoutStructure(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Return an instance of LayoutStructure for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#LayoutStructure

Parameters:
model - the Jena Model
Returns:
a List of LayoutStructure
Throws:
com.ibm.adtech.jastor.JastorException

createUserContext

public static UserContext createUserContext(Resource resource,
                                            Model model)
                                     throws com.ibm.adtech.jastor.JastorException
Create a new instance of UserContext. Adds the rdf:type property for the given resource to the model.

Parameters:
resource - The resource of the UserContext
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

createUserContext

public static UserContext createUserContext(String uri,
                                            Model model)
                                     throws com.ibm.adtech.jastor.JastorException
Create a new instance of UserContext. Adds the rdf:type property for the given resource to the model.

Parameters:
uri - The uri of the UserContext
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getUserContext

public static UserContext getUserContext(String uri,
                                         Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Create a new instance of UserContext. Leaves the model unchanged.

Parameters:
uri - The uri of the UserContext
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getUserContext

public static UserContext getUserContext(Resource resource,
                                         Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Create a new instance of UserContext. Leaves the model unchanged.

Parameters:
resource - The resource of the UserContext
model - the Jena Model.
Throws:
com.ibm.adtech.jastor.JastorException

getAllUserContext

public static List getAllUserContext(Model model)
                              throws com.ibm.adtech.jastor.JastorException
Return an instance of UserContext for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/DataModel#UserContext

Parameters:
model - the Jena Model
Returns:
a List of UserContext
Throws:
com.ibm.adtech.jastor.JastorException

getThing

public static com.ibm.adtech.jastor.Thing getThing(Resource res,
                                                   Model model)
                                            throws com.ibm.adtech.jastor.JastorException
Returns an instance of an interface for the given Resource. The return instance is guaranteed to implement the most specific interface in *some* hierarchy in which the Resource participates. The behavior is unspecified for resources with RDF types from different hierarchies.

Returns:
an instance of Thing
Throws:
com.ibm.adtech.jastor.JastorException

getThing

public static com.ibm.adtech.jastor.Thing getThing(String uri,
                                                   Model model)
                                            throws com.ibm.adtech.jastor.JastorException
Returns an instance of an interface for the given Resource URI. The return instance is guaranteed to implement the most specific interface in *some* hierarchy in which the Resource participates. The behavior is unspecified for resources with RDF types from different hierarchies.

Returns:
an instance of Thing
Throws:
com.ibm.adtech.jastor.JastorException

listCompatibleInterfaces

public static List listCompatibleInterfaces(Resource type)
Return a list of compatible interfaces for the given type. Searches through all ontology classes in the DataModel ontology. The list is sorted according to the topological sort of the class hierarchy

Returns:
a List of type java.lang.Class