|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSWAPElement
Represents a basic element in a SSWAPDocument
.
SSWAPDocument
Method Summary | |
---|---|
void |
addComment(java.lang.String comment)
Adds and rdfs:comment to this type. |
void |
addLabel(java.lang.String label)
Adds an rdfs:label statement to this type. |
java.lang.Boolean |
asBoolean()
Type-safe case of this element to a boolean. |
java.lang.Double |
asDouble()
Type-safe cast of this element to a double. |
SSWAPIndividual |
asIndividual()
Type-safe cast of this element to a SSWAPIndividual. |
java.lang.Integer |
asInteger()
Type-safe cast of this element to an integer. |
SSWAPList |
asList()
Type-safe cast of this element to a list. |
SSWAPLiteral |
asLiteral()
Type-safe cast of this element to SSWAPLiteral. |
java.lang.String |
asString()
Type-safe cast of this element to a String. |
java.lang.String |
getComment()
Returns that rdfs:comment value of this type or null if no comment exists. |
java.lang.String |
getLabel()
Returns that rdfs:label value of this type or null if no label exists. |
boolean |
isIndividual()
Checks whether this element is a SSWAPIndividual. |
boolean |
isList()
Checks whether this element is a list of SSWAPElements. |
boolean |
isLiteral()
Checks whether this element is a literal. |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Method Detail |
---|
boolean isLiteral()
boolean isIndividual()
boolean isList()
java.lang.String asString()
java.lang.Integer asInteger()
java.lang.Double asDouble()
java.lang.Boolean asBoolean()
SSWAPIndividual asIndividual()
SSWAPLiteral asLiteral()
SSWAPList asList()
void addLabel(java.lang.String label)
label
- the label to be addedvoid addComment(java.lang.String comment)
comment
- the comment to be added to this typejava.lang.String getLabel()
null
if no label exists. If multiple labels exist for
the type any one of them is returned. For literal labels, only the lexical form is returned not the type nor the
language identifier.
null
if no label existsjava.lang.String getComment()
null
if no comment exists. If multiple comments
exist for the type any one of them is returned. For literal comments, only the lexical form is returned not the
type nor the language identifier.
null
if no comment exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |