Interface Resource
- All Superinterfaces:
Serializable, Value
- All Known Subinterfaces:
BNode, IRI, LmdbResource, NativeResource, Triple
- All Known Implementing Classes:
AbstractBNode, AbstractIRI, AbstractTriple, CorruptIRI, CorruptIRIOrBNode, InternedIRI, LmdbBNode, LmdbIRI, MemBNode, MemIRI, MemResource, MemTriple, NativeBNode, NativeIRI, SimpleBNode, SimpleIRI, SimpleTriple
The supertype of all RDF resources (IRIs and blank nodes).
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck if the object is an instance of the given type.Methods inherited from interface Value
getType, isBNode, isIRI, isLiteral, isTriple, stringValueModifier and TypeMethodDescriptiondefault Value.TypegetType()default booleanisBNode()Check if the object is an instance of the given type.default booleanisIRI()Check if the object is an instance of the given type.default booleanCheck if the object is an instance of the given type.default booleanisTriple()Check if the object is an instance of the given type.Returns the String-value of a Value object.
-
Method Details
-
isResource
default boolean isResource()Description copied from interface:ValueCheck if the object is an instance of the given type. Typically 2x than using instanceof.For implementers: This default implementation is overridden in the repsective sub-interface.
- Specified by:
isResourcein interfaceValue- Returns:
- true if instance of
Resource
-