info.sswap.api.input
Class InputFactory

java.lang.Object
  extended by info.sswap.api.input.InputFactory

public class InputFactory
extends java.lang.Object

Factory class used to create Input objects directly.

Author:
Evren Sirin

Constructor Summary
InputFactory()
           
 
Method Summary
static AtomicInput createAtomicInput(java.net.URI type)
           
static BNodeValue createBNode(java.lang.String bnodeID)
          Creates a bnode value.
static EnumeratedInput createEnumeratedInput(java.util.Collection<InputValue> values)
           
static EnumeratedInput createEnumeratedInput(InputValue... values)
           
static IntersectionInput createIntersectionInput(java.util.Collection<Input> inputs)
           
static IntersectionInput createIntersectionInput(Input... inputs)
           
static LiteralValue createLiteral(java.lang.String label)
          Creates a plain literal with no language tag or datatype URI.
static LiteralValue createLiteral(java.lang.String label, java.lang.String language)
          Creates a literal with the given label and language tag.
static LiteralValue createLiteral(java.lang.String label, java.net.URI datatype)
          Creates a typed literal with the given datatype URI.
static PropertyInput createPropertyInput(java.net.URI property)
           
static PropertyInput createPropertyInput(java.net.URI property, Input range)
           
static PropertyInput createPropertyInput(java.net.URI property, Input range, int minCardinality, int maxCardinality)
           
static UnionInput createUnionInput(java.util.Collection<Input> inputs)
           
static UnionInput createUnionInput(Input... inputs)
           
static Input createUnrestricedInput()
           
static URIValue createURI(java.lang.String uri)
          Creates a URI value.
static URIValue createURI(java.net.URI uri)
          Creates a URI value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFactory

public InputFactory()
Method Detail

createUnrestricedInput

public static Input createUnrestricedInput()

createAtomicInput

public static AtomicInput createAtomicInput(java.net.URI type)

createIntersectionInput

public static IntersectionInput createIntersectionInput(Input... inputs)

createIntersectionInput

public static IntersectionInput createIntersectionInput(java.util.Collection<Input> inputs)

createUnionInput

public static UnionInput createUnionInput(Input... inputs)

createUnionInput

public static UnionInput createUnionInput(java.util.Collection<Input> inputs)

createEnumeratedInput

public static EnumeratedInput createEnumeratedInput(InputValue... values)

createEnumeratedInput

public static EnumeratedInput createEnumeratedInput(java.util.Collection<InputValue> values)

createPropertyInput

public static PropertyInput createPropertyInput(java.net.URI property)

createPropertyInput

public static PropertyInput createPropertyInput(java.net.URI property,
                                                Input range)

createPropertyInput

public static PropertyInput createPropertyInput(java.net.URI property,
                                                Input range,
                                                int minCardinality,
                                                int maxCardinality)

createURI

public static URIValue createURI(java.lang.String uri)
Creates a URI value.


createURI

public static URIValue createURI(java.net.URI uri)
Creates a URI value.


createBNode

public static BNodeValue createBNode(java.lang.String bnodeID)
Creates a bnode value.


createLiteral

public static LiteralValue createLiteral(java.lang.String label)
Creates a plain literal with no language tag or datatype URI.


createLiteral

public static LiteralValue createLiteral(java.lang.String label,
                                         java.lang.String language)
Creates a literal with the given label and language tag.


createLiteral

public static LiteralValue createLiteral(java.lang.String label,
                                         java.net.URI datatype)
Creates a typed literal with the given datatype URI.



Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.