public final class IndividualRestriction extends BoundedValueRestriction
TypeExpression
(BoundedValueRestriction
) that contains all
individuals with a given lower bound and/or upper bound. The individuals need
to be comparable, i.e. they need to be sub classes of
ComparableIndividual
.
This class is not defined for literals, but individuals.
TypeRestriction.Facet
Modifier and Type | Field and Description |
---|---|
static String |
DATATYPE_URI
URI of the data type.
|
XSD_FACET_MAX_EXCLUSIVE, XSD_FACET_MAX_INCLUSIVE, XSD_FACET_MIN_EXCLUSIVE, XSD_FACET_MIN_INCLUSIVE
PROP_OWL_ON_DATATYPE, PROP_OWL_WITH_RESTRICTIONS, restrictions, XSD_FACET_PATTERN
EXCEPTION_TTL, OWL_CLASS, OWL_NAMESPACE, PROP_RDFS_SUB_CLASS_OF, RDFS_DATATYPE, TYPE_OWL_THING
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, NAMESPACE_PREFIX, ns_delim_index, PROP_INVOLVED_HUMAN_USER, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, SERVICE_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uri, VOCABULARY_NAMESPACE
Constructor and Description |
---|
IndividualRestriction()
Standard constructor for exclusive use by serializers.
|
IndividualRestriction(ComparableIndividual min,
boolean minInclusive,
ComparableIndividual max,
boolean maxInclusive)
Creates a new restriction.
|
IndividualRestriction(Object min,
boolean minInclusive,
Object max,
boolean maxInclusive)
Creates a new restriction.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkType(Object o)
Determines whether the type of the given object is valid.
|
TypeExpression |
copy()
Create a copy of this object, i.e.
|
protected Comparable |
getNext(Comparable c)
Returns the next element, i.e.
|
protected Comparable |
getPrevious(Comparable c)
Returns the previous element, i.e.
|
copyTo, getLowerbound, getUpperbound, hasMember, isDisjointWith, isWellFormed, matches, setProperty
addConstrainingFacet, copyTo, getMemberValueToCheck, getNamedSuperclasses, getTypeURI, getUpperEnumeration, hasMember, iterate, matches, resolveVarByGreaterEqual, resolveVarByLessEqual, setFacet, setPattern
checkTTL, collectTypesMinimized, getDefaultMatchmakingTTL, hasMember, hasMember, isDisjointWith, isDisjointWith, matches, matches, synchronize
addMultiLangProp, addType, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getLocalName, getMultiLangProp, getNamespace, getOrConstructLabel, getOrConstructLabel, getProperty, getPropertyURIs, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getResourceLabel, getStaticFieldValue, getType, getTypes, getURI, hashCode, hasProperty, hasQualifiedName, isAnon, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, numberOfProperties, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
public static final String DATATYPE_URI
public IndividualRestriction()
public IndividualRestriction(ComparableIndividual min, boolean minInclusive, ComparableIndividual max, boolean maxInclusive)
min
- The minimum value, or null if no minimum is defined.minInclusive
- True, if the minimum value is included. Ignored, if min is
null.max
- The maximum value, or null if no maximum is defined.maxInclusive
- True, if the maximum value is included. Ignored, if max is
null.public IndividualRestriction(Object min, boolean minInclusive, Object max, boolean maxInclusive)
min
- The minimum value, or a Variable
reference, or null if
no minimum is defined.minInclusive
- True, if the minimum value is included. Ignored, if min is
null.max
- The maximum value, or a Variable
reference, or null if
no maximum is defined.maxInclusive
- True, if the maximum value is included. Ignored, if max is
null.protected boolean checkType(Object o)
BoundedValueRestriction
Variable
.checkType
in class BoundedValueRestriction
o
- The object to check.protected Comparable getNext(Comparable c)
TypeRestriction
getNext
in class TypeRestriction
c
- A value for which to get the next value.protected Comparable getPrevious(Comparable c)
TypeRestriction
getPrevious
in class TypeRestriction
c
- A value for which to get the previous value.public TypeExpression copy()
TypeExpression
copy
in class TypeExpression
Copyright © 2018 universAAL Consortium. All rights reserved.