|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.http.rest.DefinitionFactoryBase
public abstract class DefinitionFactoryBase
Base for all factories that create definitions of terminology (e.g., definitions of classes, properties, ontologies) etc. It contains shared methods for processing the intermediate representation.
Constructor Summary | |
---|---|
DefinitionFactoryBase()
|
Method Summary | |
---|---|
protected static java.util.Collection<java.net.URI> |
createURICollection(Value collectionValue)
Treats the given JSON value as an array of URIs and converts it into a collection of URIs |
protected static java.lang.String |
getString(Value value)
Gets the value of the Value as string |
protected java.util.Collection<LiteralValue> |
getValuesAsLiteralCollection(Value value)
Converts a JSON intermediate representation of a value to a collection of strings. |
protected static java.util.Collection<info.sswap.api.model.SSWAPElement> |
getValuesAsPropertyValues(info.sswap.api.model.SSWAPDocument document,
info.sswap.api.model.SSWAPPredicate predicate,
Value value)
|
protected static java.util.Collection<java.lang.String> |
getValuesAsStringCollection(Value value)
Converts a JSON intermediate representation of a value to a collection of strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionFactoryBase()
Method Detail |
---|
protected static java.util.Collection<java.net.URI> createURICollection(Value collectionValue) throws java.lang.IllegalArgumentException
collectionValue
- the json array
java.lang.IllegalArgumentException
protected static java.lang.String getString(Value value) throws java.lang.IllegalArgumentException
value
- the value that should be a string
java.lang.IllegalArgumentException
- if the value is not a literalprotected static java.util.Collection<info.sswap.api.model.SSWAPElement> getValuesAsPropertyValues(info.sswap.api.model.SSWAPDocument document, info.sswap.api.model.SSWAPPredicate predicate, Value value)
protected static java.util.Collection<java.lang.String> getValuesAsStringCollection(Value value)
value
- the JSON intermediate representation of a value -- either a literal or an array of literals
java.lang.IllegalArgumentException
- if the value is neither a literal or an array of literalsprotected java.util.Collection<LiteralValue> getValuesAsLiteralCollection(Value value)
value
- the JSON intermediate representation of a value -- either a literal or an array of literals
java.lang.IllegalArgumentException
- if the value is neither a literal or an array of literals
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |