public class EmptyRestrictedDatatype<T> extends EmptyDataRange<T> implements RestrictedDatatype<T>
Title: Empty Iterator
Description: Re-usable empty restricted datatype implementation. Cannot be static so that parameterization is handled correctly.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
EmptyRestrictedDatatype(Datatype<? extends T> datatype) |
| Modifier and Type | Method and Description |
|---|---|
RestrictedDatatype<T> |
applyConstrainingFacet(aterm.ATermAppl facet,
Object value)
Apply a constraining facet to further restrict the value space
|
RestrictedDatatype<T> |
exclude(Collection<?> values)
Exclude specific elements from the data range.
|
void |
getConstrainingFacetValues(aterm.ATermAppl[] facets,
Object[] values) |
Datatype<? extends T> |
getDatatype()
Query for the base datatype of a restricted datatype.
|
boolean |
inFacetSpace(aterm.ATermAppl facet,
Object value) |
RestrictedDatatype<T> |
intersect(RestrictedDatatype<?> other,
boolean negated)
Intersect this range with another range.
|
RestrictedDatatype<T> |
union(RestrictedDatatype<?> other)
Union this range with another range.
|
contains, containsAtLeast, getValue, isEmpty, isEnumerable, isFinite, size, valueIteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, containsAtLeast, getValue, isEmpty, isEnumerable, isFinite, size, valueIteratorpublic RestrictedDatatype<T> applyConstrainingFacet(aterm.ATermAppl facet, Object value)
RestrictedDatatypeapplyConstrainingFacet in interface RestrictedDatatype<T>facet - the constraining facet name (typically a URI)value - the value for the constraining facet. This is not necessarily
in the value space of the base datatype (e.g., length facet
values on string types are not)public RestrictedDatatype<T> exclude(Collection<?> values)
RestrictedDatatypevalues that are not contained in the restriction are
ignored.exclude in interface RestrictedDatatype<T>values - The values to excludeRestrictedDatatypepublic void getConstrainingFacetValues(aterm.ATermAppl[] facets,
Object[] values)
public Datatype<? extends T> getDatatype()
RestrictedDatatypegetDatatype in interface RestrictedDatatype<T>public boolean inFacetSpace(aterm.ATermAppl facet,
Object value)
public RestrictedDatatype<T> intersect(RestrictedDatatype<?> other, boolean negated)
RestrictedDatatypegetDatatype().getPrimitiveDatatype().equals( other.getDatatype.getPrimiveDatatype()intersect in interface RestrictedDatatype<T>other - restricted datatype to merge into thisnegated - true if other is negated,
false elseRestrictedDatatype, representing the intersection
of this and otherpublic RestrictedDatatype<T> union(RestrictedDatatype<?> other)
RestrictedDatatypegetDatatype().getPrimitiveDatatype().equals( other.getDatatype.getPrimiveDatatype()union in interface RestrictedDatatype<T>other - restricted datatype to merge with thisRestrictedDatatype, representing the intersection
of this and otherCopyright © 2019. All rights reserved.