/** * <p>Answer a view of this class as a union class</p> * @return This class, but viewed as a UnionClass node * @exception ConversionException if the class cannot be converted to a union class * given the lanuage profile and the current state of the underlying model. */ @Override public UnionClass asUnionClass() { return as( UnionClass.class ); }
/** * <p>Answer a view of this class as a complement class</p> * @return This class, but viewed as a ComplementClass node * @exception ConversionException if the class cannot be converted to a complement class * given the lanuage profile and the current state of the underlying model. */ @Override public ComplementClass asComplementClass() { return as( ComplementClass.class ); }
/** * <p>Answer a view of this class as a restriction class expression</p> * @return This class, but viewed as a Restriction node * @exception ConversionException if the class cannot be converted to a restriction * given the lanuage profile and the current state of the underlying model. */ @Override public Restriction asRestriction() { return as( Restriction.class ); }
/** * <p>Answer a view of this class as an enumerated class</p> * @return This class, but viewed as an EnumeratedClass node * @exception ConversionException if the class cannot be converted to an enumerated class * given the lanuage profile and the current state of the underlying model. */ @Override public EnumeratedClass asEnumeratedClass() { return as( EnumeratedClass.class ); }
/** * <p>Answer a view of this class as an enumerated class</p> * @return This class, but viewed as an EnumeratedClass node * @exception ConversionException if the class cannot be converted to an enumerated class * given the lanuage profile and the current state of the underlying model. */ @Override public EnumeratedClass asEnumeratedClass() { return as( EnumeratedClass.class ); }
/** * <p>Answer a view of this class as an intersection class</p> * @return This class, but viewed as an IntersectionClass node * @exception ConversionException if the class cannot be converted to an intersection class * given the lanuage profile and the current state of the underlying model. */ @Override public IntersectionClass asIntersectionClass() { return as( IntersectionClass.class ); }
/** * <p>Answer a view of this class as an intersection class</p> * @return This class, but viewed as an IntersectionClass node * @exception ConversionException if the class cannot be converted to an intersection class * given the lanuage profile and the current state of the underlying model. */ @Override public IntersectionClass asIntersectionClass() { return as( IntersectionClass.class ); }
/** * <p>Answer a view of this class as a complement class</p> * @return This class, but viewed as a ComplementClass node * @exception ConversionException if the class cannot be converted to a complement class * given the lanuage profile and the current state of the underlying model. */ @Override public ComplementClass asComplementClass() { return as( ComplementClass.class ); }
/** * <p>Answer a view of this class as a union class</p> * @return This class, but viewed as a UnionClass node * @exception ConversionException if the class cannot be converted to a union class * given the lanuage profile and the current state of the underlying model. */ @Override public UnionClass asUnionClass() { return as( UnionClass.class ); }
/** * <p>Answer a view of this class as a restriction class expression</p> * @return This class, but viewed as a Restriction node * @exception ConversionException if the class cannot be converted to a restriction * given the lanuage profile and the current state of the underlying model. */ @Override public Restriction asRestriction() { return as( Restriction.class ); }
/** * <p>Answer a view of this class as an intersection of the given classes.</p> * @param classes A list of the classes that will comprise the operands of the intersection * @return This ontology class, converted to an intersection of the given classes */ @Override public IntersectionClass convertToIntersectionClass( RDFList classes ) { setPropertyValue( getProfile().INTERSECTION_OF(), "INTERSECTION_OF", classes ); return as( IntersectionClass.class ); }
/** * <p>Answer a view of this class as an enumeration of the given individuals.</p> * @param individuals A list of the individuals that will comprise the permitted values of this * class converted to an enumeration * @return This ontology class, converted to an enumeration of the given individuals */ @Override public EnumeratedClass convertToEnumeratedClass( RDFList individuals ) { setPropertyValue( getProfile().ONE_OF(), "ONE_OF", individuals ); return as( EnumeratedClass.class ); }
/** * <p>Answer a view of this class as a union of the given classes.</p> * @param classes A list of the classes that will comprise the operands of the union * @return This ontology class, converted to an union of the given classes */ @Override public UnionClass convertToUnionClass( RDFList classes ) { setPropertyValue( getProfile().UNION_OF(), "UNION_OF", classes ); return as( UnionClass.class ); }
/** * <p>Answer a view of this class as an intersection of the given classes.</p> * @param classes A list of the classes that will comprise the operands of the intersection * @return This ontology class, converted to an intersection of the given classes */ @Override public IntersectionClass convertToIntersectionClass( RDFList classes ) { setPropertyValue( getProfile().INTERSECTION_OF(), "INTERSECTION_OF", classes ); return as( IntersectionClass.class ); }
/** * <p>Answer a view of this class as an complement of the given class.</p> * @param cls An ontology classs that will be operand of the complement * @return This ontology class, converted to an complement of the given class */ @Override public ComplementClass convertToComplementClass( Resource cls ) { setPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); return as( ComplementClass.class ); }
/** * <p>Answer a view of this class as an enumeration of the given individuals.</p> * @param individuals A list of the individuals that will comprise the permitted values of this * class converted to an enumeration * @return This ontology class, converted to an enumeration of the given individuals */ @Override public EnumeratedClass convertToEnumeratedClass( RDFList individuals ) { setPropertyValue( getProfile().ONE_OF(), "ONE_OF", individuals ); return as( EnumeratedClass.class ); }
/** * <p>Answer a view of this class as a union of the given classes.</p> * @param classes A list of the classes that will comprise the operands of the union * @return This ontology class, converted to an union of the given classes */ @Override public UnionClass convertToUnionClass( RDFList classes ) { setPropertyValue( getProfile().UNION_OF(), "UNION_OF", classes ); return as( UnionClass.class ); }
/** * <p>Answer a view of this class as an complement of the given class.</p> * @param cls An ontology classs that will be operand of the complement * @return This ontology class, converted to an complement of the given class */ @Override public ComplementClass convertToComplementClass( Resource cls ) { setPropertyValue( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF", cls ); return as( ComplementClass.class ); }
/** * <p>Answer a view of this class as an restriction on the given property.</p> * @param prop A property this is the subject of a property restriction class expression * @return This ontology class, converted to a restriction on the given property */ @Override public Restriction convertToRestriction( Property prop ) { if (!hasRDFType( getProfile().RESTRICTION(), "RESTRICTION", false )) { setRDFType( getProfile().RESTRICTION() ); } setPropertyValue( getProfile().ON_PROPERTY(), "ON_PROPERTY", prop ); return as( Restriction.class ); }
/** * <p>Answer a view of this class as an restriction on the given property.</p> * @param prop A property this is the subject of a property restriction class expression * @return This ontology class, converted to a restriction on the given property */ @Override public Restriction convertToRestriction( Property prop ) { if (!hasRDFType( getProfile().RESTRICTION(), "RESTRICTION", false )) { setRDFType( getProfile().RESTRICTION() ); } setPropertyValue( getProfile().ON_PROPERTY(), "ON_PROPERTY", prop ); return as( Restriction.class ); }