|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.datatypes.EmptyDataRange<T>
com.clarkparsia.pellet.datatypes.EmptyRestrictedDatatype<T>
public class EmptyRestrictedDatatype<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 Summary | |
---|---|
EmptyRestrictedDatatype(Datatype<? extends T> datatype)
|
Method Summary | |
---|---|
RestrictedDatatype<T> |
applyConstrainingFacet(aterm.ATermAppl facet,
java.lang.Object value)
Apply a constraining facet to further restrict the value space |
RestrictedDatatype<T> |
exclude(java.util.Collection<?> values)
Exclude specific elements from the data range. |
void |
getConstrainingFacetValues(aterm.ATermAppl[] facets,
java.lang.Object[] values)
|
Datatype<? extends T> |
getDatatype()
Query for the base datatype of a restricted datatype. |
boolean |
inFacetSpace(aterm.ATermAppl facet,
java.lang.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. |
Methods inherited from class com.clarkparsia.pellet.datatypes.EmptyDataRange |
---|
contains, containsAtLeast, getValue, isEmpty, isEnumerable, isFinite, size, valueIterator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.clarkparsia.pellet.datatypes.DataRange |
---|
contains, containsAtLeast, getValue, isEmpty, isEnumerable, isFinite, size, valueIterator |
Constructor Detail |
---|
public EmptyRestrictedDatatype(Datatype<? extends T> datatype)
Method Detail |
---|
public RestrictedDatatype<T> applyConstrainingFacet(aterm.ATermAppl facet, java.lang.Object value)
RestrictedDatatype
applyConstrainingFacet
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(java.util.Collection<?> values)
RestrictedDatatype
values
that are not contained in the restriction are
ignored.
exclude
in interface RestrictedDatatype<T>
values
- The values to exclude
RestrictedDatatype
public void getConstrainingFacetValues(aterm.ATermAppl[] facets, java.lang.Object[] values)
public Datatype<? extends T> getDatatype()
RestrictedDatatype
getDatatype
in interface RestrictedDatatype<T>
public boolean inFacetSpace(aterm.ATermAppl facet, java.lang.Object value)
public RestrictedDatatype<T> intersect(RestrictedDatatype<?> other, boolean negated)
RestrictedDatatype
getDatatype().getPrimitiveDatatype().equals( other.getDatatype.getPrimiveDatatype()
intersect
in interface RestrictedDatatype<T>
other
- restricted datatype to merge into thisnegated
- true
if other
is negated,
false
else
RestrictedDatatype
, representing the intersection
of this
and other
public RestrictedDatatype<T> union(RestrictedDatatype<?> other)
RestrictedDatatype
getDatatype().getPrimitiveDatatype().equals( other.getDatatype.getPrimiveDatatype()
union
in interface RestrictedDatatype<T>
other
- restricted datatype to merge with this
RestrictedDatatype
, representing the intersection
of this
and other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |