Package dev.enola.thing.impl
Class OnlyIRIThing
java.lang.Object
dev.enola.thing.impl.OnlyIRIThing
- All Implemented Interfaces:
HasIRI,IImmutablePredicatesObjects,IImmutableThing,PredicatesObjects,Thing
Thing with only an IRI and no properties (optimized).
See AlwaysThingProvider.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.enola.thing.PredicatesObjects
PredicatesObjects.Builder<B extends PredicatesObjects>Nested classes/interfaces inherited from interface dev.enola.thing.Thing
Thing.Builder<B extends Thing> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThing.Builder<? extends Thing> copy()@Nullable StringIRI of datatype of predicate, if any (else null).final boolean<T> @Nullable TObject of predicate.final inthashCode()iri()IRIs of the Predicates of this Thing.The Map's key is the IRI of a predicate, and the value is as would be returned byPredicatesObjects.get(String).final StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.enola.thing.PredicatesObjects
datatype, get, get, get, getLinks, getOptional, getString, getString, getThing, getThing, getThingOrThrow, getThings, getThings, getThings, getThings, hasLink, isIterable, isLinkObject, isOrdered, isStruct
-
Constructor Details
-
OnlyIRIThing
-
-
Method Details
-
iri
-
properties
Description copied from interface:PredicatesObjectsThe Map's key is the IRI of a predicate, and the value is as would be returned byPredicatesObjects.get(String).- Specified by:
propertiesin interfaceIImmutablePredicatesObjects- Specified by:
propertiesin interfacePredicatesObjects
-
predicateIRIs
Description copied from interface:PredicatesObjectsIRIs of the Predicates of this Thing.- Specified by:
predicateIRIsin interfaceIImmutablePredicatesObjects- Specified by:
predicateIRIsin interfacePredicatesObjects
-
datatype
Description copied from interface:PredicatesObjectsIRI of datatype of predicate, if any (else null). Not all predicates will have a datatype set. This is required because the predicate's Object Java class is not necessarily unique; e.g. both dev.enola.model.schema.Datatypes.DATE as well as dev.enola.model.xsd.DATE are java.time.LocalDate instances.- Specified by:
datatypein interfacePredicatesObjects
-
datatypes
- Specified by:
datatypesin interfaceIImmutablePredicatesObjects- Specified by:
datatypesin interfacePredicatesObjects
-
get
Description copied from interface:PredicatesObjectsObject of predicate. The type is e.g. directly a String, Integer etc. Alternatively, it may be aLink(orURI) with an IRI or another PredicatesObjects (for an "inline embedded/expanded blank node") or aListof such items. The object is immutable. May be null if Thing has no such predicate.- Specified by:
getin interfacePredicatesObjects
-
copy
- Specified by:
copyin interfacePredicatesObjects- Specified by:
copyin interfaceThing
-
hashCode
-
equals
-
toString
-