Package dev.enola.thing.message
Class PredicatesObjectsAdapter
java.lang.Object
dev.enola.thing.message.PredicatesObjectsAdapter
- All Implemented Interfaces:
IImmutablePredicatesObjects,PredicatesObjects
- Direct Known Subclasses:
ThingAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.enola.thing.PredicatesObjects
PredicatesObjects.Builder<B extends PredicatesObjects> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPredicatesObjectsAdapter(Thing proto, DatatypeRepository datatypeRepository) -
Method Summary
Modifier and TypeMethodDescriptionPredicatesObjects.Builder<? extends PredicatesObjects> copy()@Nullable StringIRI of datatype of predicate, if any (else null).boolean<T> @Nullable TObject of predicate.inthashCode()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).toString()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
-
Field Details
-
proto
-
datatypeRepository
-
-
Constructor Details
-
PredicatesObjectsAdapter
-
-
Method Details
-
predicateIRIs
Description copied from interface:PredicatesObjectsIRIs of the Predicates of this Thing.- Specified by:
predicateIRIsin interfaceIImmutablePredicatesObjects- Specified by:
predicateIRIsin 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
-
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
-
datatypes
- Specified by:
datatypesin interfaceIImmutablePredicatesObjects- Specified by:
datatypesin 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
-
copy
- Specified by:
copyin interfacePredicatesObjects
-
equals
-
hashCode
-
toString
-