Method Summary |
|
public void | addOneOf(Literal lit) Add a literal to the enumeration that defines the permissible values of this class.
Parameters: lit - A literal to add to the enumeration exception: OntProfileException - If the Profile.ONE_OF property is not supported in the current language profile. |
public void | addOneOf(Iterator literals) Add each literal from the given iteratation to the
enumeration that defines the permissible values of this datarange.
Parameters: literals - An iterator over literals exception: OntProfileException - If the Profile.ONE_OF property is not supported in the current language profile. |
public RDFList | getOneOf() Answer a list of literals that defines the extension of this datarange.
A list of literals that is the permissible values exception: OntProfileException - If the Profile.ONE_OF property is not supported in the current language profile. |
public boolean | hasOneOf(Literal lit) Answer true if the given literal is one of the enumerated literals that are the permissible values
of this datarange.
Parameters: lit - A literal to test True if the given literal is in the permissible values for this class. exception: OntProfileException - If the Profile.ONE_OF property is not supported in the current language profile. |
public ExtendedIterator | listOneOf() Answer an iterator over all of the literals that are declared to be the permissible values for
this class. |
public void | removeOneOf(Literal lit) Remove the statement that this enumeration includes lit among its members. |
public void | setOneOf(RDFList en) Assert that this data range is exactly the enumeration of the given individuals. |