/** * <p>Answer the class that the class described by this class description * is a complement of.</p> * @return The class that this class is a complement of. */ @Override public OntClass getOperand() { return objectAs( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", OntClass.class ); }
/** * <p>Answer true if this Boolean class expression has the given class as an operand.</p> * @param cls A class to test * @return True if the given class is an operand to this expression. * @exception ProfileException If the operand property is not supported in the current language profile. */ @Override public boolean hasOperand( Resource cls ) { return hasPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); }
/** * <p>Answer an iterator over all of the classes that are the operands of this * Boolean class expression. Each element of the iterator will be an {@link OntClass}.</p> * @return An iterator over the operands of the expression. * @exception ProfileException If the operand property is not supported in the current language profile. */ @Override public ExtendedIterator<? extends OntClass> listOperands() { return listAs( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", OntClass.class ); }
/** * <p>Set the class that the class represented by this class expression is * a complement of. Any existing value for <code>complementOf</code> will * be replaced.</p> * @param cls The class that this class is a complement of. */ @Override public void setOperand( Resource cls ) { setPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); }
/** * <p>Remove the given resource from the operands of this class expression.</p> * @param res An resource to be removed from the operands of this class expression */ @Override public void removeOperand( Resource res ) { removePropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", res ); }
/** * <p>Answer the property that is used to construct this boolean expression, for example * {@link Profile#UNION_OF()}.</p> * @return {@link Profile#COMPLEMENT_OF()} */ @Override public Property operator() { return getProfile().COMPLEMENT_OF(); }
@Override public EnhNode wrap( Node n, EnhGraph eg ) { if (canWrap( n, eg )) { return new ComplementClassImpl( n, eg ); } else { throw new ConversionException( "Cannot convert node " + n + " to ComplementClass"); } }
/** * <p>Set the class that the class represented by this class expression is * a complement of. Any existing value for <code>complementOf</code> will * be replaced.</p> * @param cls The class that this class is a complement of. */ @Override public void setOperand( Resource cls ) { setPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); }
/** * <p>Remove the given resource from the operands of this class expression.</p> * @param res An resource to be removed from the operands of this class expression */ @Override public void removeOperand( Resource res ) { removePropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", res ); }
/** * <p>Answer the property that is used to construct this boolean expression, for example * {@link Profile#UNION_OF()}.</p> * @return {@link Profile#COMPLEMENT_OF()} */ @Override public Property operator() { return getProfile().COMPLEMENT_OF(); }
@Override public EnhNode wrap( Node n, EnhGraph eg ) { if (canWrap( n, eg )) { return new ComplementClassImpl( n, eg ); } else { throw new ConversionException( "Cannot convert node " + n + " to ComplementClass"); } }
/** * <p>Answer the class that the class described by this class description * is a complement of.</p> * @return The class that this class is a complement of. */ @Override public OntClass getOperand() { return objectAs( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", OntClass.class ); }
/** * <p>Answer true if this Boolean class expression has the given class as an operand.</p> * @param cls A class to test * @return True if the given class is an operand to this expression. * @exception ProfileException If the operand property is not supported in the current language profile. */ @Override public boolean hasOperand( Resource cls ) { return hasPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); }
/** * <p>Answer an iterator over all of the classes that are the operands of this * Boolean class expression. Each element of the iterator will be an {@link OntClass}.</p> * @return An iterator over the operands of the expression. * @exception ProfileException If the operand property is not supported in the current language profile. */ @Override public ExtendedIterator<? extends OntClass> listOperands() { return listAs( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", OntClass.class ); }