ibspan.tss.domain.ontology.money
Class MoneyFactory

java.lang.Object
  extended by com.ibm.adtech.jastor.ThingFactory
      extended by ibspan.tss.domain.ontology.money.MoneyFactory

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

Factory for instantiating objects for ontology classes in the Money 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/Money)


RDF Schema Standard Properties
comment : Domain ontology of Money concept world in Travel Support System.^^http://www.w3.org/2001/XMLSchema#string

Dublin Core Standard Properties
creator : Maciej Gawinecki, e-mail: maciej.gawinecki@ibspan.waw.pl^^http://www.w3.org/2001/XMLSchema#string
title : Domain ontology of Money concept world in Travel Support System.^^http://www.w3.org/2001/XMLSchema#string
rights : (c) 2006 Maciej Gawinecki^^http://www.w3.org/2001/XMLSchema#string
identifier : http://www.ibspan.waw.pl/tss/Money^^http://www.w3.org/2001/XMLSchema#string
date : 2006-08-22^^http://www.w3.org/2001/XMLSchema#string

Version:
TODO: ^^http://www.w3.org/2001/XMLSchema#string

Field Summary
 
Fields inherited from class com.ibm.adtech.jastor.ThingFactory
copyright, listeners, objects
 
Constructor Summary
MoneyFactory()
           
 
Method Summary
static FuzzyPriceCode createFuzzyPriceCode(Resource resource, Model model)
          Create a new instance of FuzzyPriceCode.
static FuzzyPriceCode createFuzzyPriceCode(String uri, Model model)
          Create a new instance of FuzzyPriceCode.
static MeanOfPayment createMeanOfPayment(Resource resource, Model model)
          Create a new instance of MeanOfPayment.
static MeanOfPayment createMeanOfPayment(String uri, Model model)
          Create a new instance of MeanOfPayment.
static List getAllFuzzyPriceCode(Model model)
          Return an instance of FuzzyPriceCode for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/Money#FuzzyPriceCode
static List getAllMeanOfPayment(Model model)
          Return an instance of MeanOfPayment for every resource in the model with rdf:Type http://www.ibspan.waw.pl/tss/Money#MeanOfPayment
static MeanOfPayment getAmericanExpressCard(Model model)
          Get an AmericanExpressCard individual.
static MeanOfPayment getBankCard(Model model)
          Get an BankCard individual.
static MeanOfPayment getBankCheck(Model model)
          Get an BankCheck individual.
static MeanOfPayment getBarter(Model model)
          Get an Barter individual.
static MeanOfPayment getBusinessAccount(Model model)
          Get an BusinessAccount individual.
static MeanOfPayment getBusinessCheck(Model model)
          Get an BusinessCheck individual.
static MeanOfPayment getCarteBlancheCard(Model model)
          Get an CarteBlancheCard individual.
static MeanOfPayment getCash(Model model)
          Get an Cash individual.
static MeanOfPayment getCentralBill(Model model)
          Get an CentralBill individual.
static MeanOfPayment getChargeCard(Model model)
          Get an ChargeCard individual.
static MeanOfPayment getCoupon(Model model)
          Get an Coupon individual.
static MeanOfPayment getCreditCard(Model model)
          Get an CreditCard individual.
static MeanOfPayment getDebitCard(Model model)
          Get an DebitCard individual.
static MeanOfPayment getDeposit(Model model)
          Get an Deposit individual.
static MeanOfPayment getDinersClubCard(Model model)
          Get an DinersClubCard individual.
static MeanOfPayment getDirectBill(Model model)
          Get an DirectBill individual.
static MeanOfPayment getDiscoverCard(Model model)
          Get an DiscoverCard individual.
static MeanOfPayment getEnRouteCard(Model model)
          Get an EnRouteCard individual.
static FuzzyPriceCode getExpensive(Model model)
          Get an Expensive individual.
static FuzzyPriceCode getFuzzyPriceCode(Resource resource, Model model)
          Create a new instance of FuzzyPriceCode.
static FuzzyPriceCode getFuzzyPriceCode(String uri, Model model)
          Create a new instance of FuzzyPriceCode.
static MeanOfPayment getGiftCertificates(Model model)
          Get an GiftCertificates individual.
static FuzzyPriceCode getInexpensive(Model model)
          Get an Inexpensive individual.
static MeanOfPayment getJCBCard(Model model)
          Get an JCBCard individual.
static MeanOfPayment getMasterCardEuroCard(Model model)
          Get an MasterCardEuroCard individual.
static MeanOfPayment getMeanOfPayment(Resource resource, Model model)
          Create a new instance of MeanOfPayment.
static MeanOfPayment getMeanOfPayment(String uri, Model model)
          Create a new instance of MeanOfPayment.
static FuzzyPriceCode getModerate(Model model)
          Get an Moderate individual.
static MeanOfPayment getMoneyOrder(Model model)
          Get an MoneyOrder individual.
static MeanOfPayment getPersonalCheck(Model model)
          Get an PersonalCheck individual.
static MeanOfPayment getPrePay(Model model)
          Get an PrePay individual.
static FuzzyPriceCode getPrice(Model model)
          Get an Price individual.
static MeanOfPayment getRedemption(Model model)
          Get an Redemption 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 FuzzyPriceCode getVeryCheap(Model model)
          Get an VeryCheap individual.
static FuzzyPriceCode getVeryExpensive(Model model)
          Get an VeryExpensive individual.
static MeanOfPayment getVisaCard(Model model)
          Get an VisaCard individual.
static MeanOfPayment getVoucher(Model model)
          Get an Voucher 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

MoneyFactory

public MoneyFactory()
Method Detail

createMeanOfPayment

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

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

createMeanOfPayment

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

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

getMeanOfPayment

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

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

getMeanOfPayment

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

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

getJCBCard

public static MeanOfPayment getJCBCard(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an JCBCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getDirectBill

public static MeanOfPayment getDirectBill(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an DirectBill 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getCarteBlancheCard

public static MeanOfPayment getCarteBlancheCard(Model model)
                                         throws com.ibm.adtech.jastor.JastorException
Get an CarteBlancheCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getChargeCard

public static MeanOfPayment getChargeCard(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an ChargeCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getBarter

public static MeanOfPayment getBarter(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an Barter 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getRedemption

public static MeanOfPayment getRedemption(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an Redemption 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getAmericanExpressCard

public static MeanOfPayment getAmericanExpressCard(Model model)
                                            throws com.ibm.adtech.jastor.JastorException
Get an AmericanExpressCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getMoneyOrder

public static MeanOfPayment getMoneyOrder(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an MoneyOrder 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getDiscoverCard

public static MeanOfPayment getDiscoverCard(Model model)
                                     throws com.ibm.adtech.jastor.JastorException
Get an DiscoverCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getBankCard

public static MeanOfPayment getBankCard(Model model)
                                 throws com.ibm.adtech.jastor.JastorException
Get an BankCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getDeposit

public static MeanOfPayment getDeposit(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an Deposit 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getVisaCard

public static MeanOfPayment getVisaCard(Model model)
                                 throws com.ibm.adtech.jastor.JastorException
Get an VisaCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getVoucher

public static MeanOfPayment getVoucher(Model model)
                                throws com.ibm.adtech.jastor.JastorException
Get an Voucher 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getCentralBill

public static MeanOfPayment getCentralBill(Model model)
                                    throws com.ibm.adtech.jastor.JastorException
Get an CentralBill 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getCreditCard

public static MeanOfPayment getCreditCard(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an CreditCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getPersonalCheck

public static MeanOfPayment getPersonalCheck(Model model)
                                      throws com.ibm.adtech.jastor.JastorException
Get an PersonalCheck 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getCoupon

public static MeanOfPayment getCoupon(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an Coupon 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getDebitCard

public static MeanOfPayment getDebitCard(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Get an DebitCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getPrePay

public static MeanOfPayment getPrePay(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an PrePay 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getCash

public static MeanOfPayment getCash(Model model)
                             throws com.ibm.adtech.jastor.JastorException
Get an Cash 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getGiftCertificates

public static MeanOfPayment getGiftCertificates(Model model)
                                         throws com.ibm.adtech.jastor.JastorException
Get an GiftCertificates 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getBusinessCheck

public static MeanOfPayment getBusinessCheck(Model model)
                                      throws com.ibm.adtech.jastor.JastorException
Get an BusinessCheck 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getDinersClubCard

public static MeanOfPayment getDinersClubCard(Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Get an DinersClubCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getBusinessAccount

public static MeanOfPayment getBusinessAccount(Model model)
                                        throws com.ibm.adtech.jastor.JastorException
Get an BusinessAccount 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getBankCheck

public static MeanOfPayment getBankCheck(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Get an BankCheck 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getMasterCardEuroCard

public static MeanOfPayment getMasterCardEuroCard(Model model)
                                           throws com.ibm.adtech.jastor.JastorException
Get an MasterCardEuroCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getEnRouteCard

public static MeanOfPayment getEnRouteCard(Model model)
                                    throws com.ibm.adtech.jastor.JastorException
Get an EnRouteCard 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 MeanOfPayment.
Throws:
com.ibm.adtech.jastor.JastorException

getAllMeanOfPayment

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

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

createFuzzyPriceCode

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

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

createFuzzyPriceCode

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

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

getFuzzyPriceCode

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

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

getFuzzyPriceCode

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

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

getExpensive

public static FuzzyPriceCode getExpensive(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an Expensive 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getVeryExpensive

public static FuzzyPriceCode getVeryExpensive(Model model)
                                       throws com.ibm.adtech.jastor.JastorException
Get an VeryExpensive 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getModerate

public static FuzzyPriceCode getModerate(Model model)
                                  throws com.ibm.adtech.jastor.JastorException
Get an Moderate 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getVeryCheap

public static FuzzyPriceCode getVeryCheap(Model model)
                                   throws com.ibm.adtech.jastor.JastorException
Get an VeryCheap 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getInexpensive

public static FuzzyPriceCode getInexpensive(Model model)
                                     throws com.ibm.adtech.jastor.JastorException
Get an Inexpensive 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getPrice

public static FuzzyPriceCode getPrice(Model model)
                               throws com.ibm.adtech.jastor.JastorException
Get an Price 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 FuzzyPriceCode.
Throws:
com.ibm.adtech.jastor.JastorException

getAllFuzzyPriceCode

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

Parameters:
model - the Jena Model
Returns:
a List of FuzzyPriceCode
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 Money ontology. The list is sorted according to the topological sort of the class hierarchy

Returns:
a List of type java.lang.Class