|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataFactory.Open>
info.sswap.ontologies.data.api.DataFactory.Open
public static enum DataFactory.Open
Directives on how to open data elements for reading and writing.
Enum Constant Summary | |
---|---|
AUTO
Attempt to open for literal data; if there is no data:literalData property on the individual, then
attempt to open the individual resource itself for reading/writing. |
|
LITERAL
Attempt to open for literal data only; throw on failure (no data:literalData property on the individual) |
|
RESOURCE
Attempt to open for resource data only; throw on failure (an anonymous node or non-URL URI) |
Method Summary | |
---|---|
static DataFactory.Open |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DataFactory.Open[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DataFactory.Open AUTO
data:literalData
property on the individual, then
attempt to open the individual resource itself for reading/writing.
(an anonymous individuals or individuals with non-URL URI may be
opened, but they will need an accessor for a successful read/write).
Resources used for reading only are never changed; resources used for
reading that do not belong to the upper ontology type
data:DataFormat
always succeed immediately on a trivial
read of empty data. Resources used for writing may be changed to type
data:DataFormat
with the addition of the literal data
property data:literalData
if and only if required for a
successful write. This is suitable for reading or writing to a data
source or sink such as SSWAPSubject or SSWAPObject.
public static final DataFactory.Open LITERAL
data:literalData
property on the individual)
public static final DataFactory.Open RESOURCE
Method Detail |
---|
public static DataFactory.Open[] values()
for (DataFactory.Open c : DataFactory.Open.values()) System.out.println(c);
public static DataFactory.Open valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |