/** * <p>Answer a view of this restriction as a some values from expression</p> * @return This class, but viewed as a SomeValuesFromRestriction node * @exception ConversionException if the class cannot be converted to an all values from restriction * given the lanuage profile and the current state of the underlying model. */ @Override public SomeValuesFromRestriction asSomeValuesFromRestriction() { return as( SomeValuesFromRestriction.class ); }
/** * <p>Answer a view of this restriction as a min cardinality restriction class expression</p> * @return This class, but viewed as a MinCardinalityRestriction node * @exception ConversionException if the class cannot be converted to a min cardinality restriction * given the lanuage profile and the current state of the underlying model. */ @Override public MinCardinalityRestriction asMinCardinalityRestriction() { return as( MinCardinalityRestriction.class ); }
/** * <p>Answer a view of this restriction as an all values from expression</p> * @return This class, but viewed as an AllValuesFromRestriction node * @exception ConversionException if the class cannot be converted to an all values from restriction * given the lanuage profile and the current state of the underlying model. */ @Override public AllValuesFromRestriction asAllValuesFromRestriction() { return as( AllValuesFromRestriction.class ); }
/** * <p>Answer a view of this restriction as a min cardinality restriction class expression</p> * @return This class, but viewed as a MinCardinalityRestriction node * @exception ConversionException if the class cannot be converted to a min cardinality restriction * given the lanuage profile and the current state of the underlying model. */ @Override public MinCardinalityRestriction asMinCardinalityRestriction() { return as( MinCardinalityRestriction.class ); }
/** * <p>Answer a view of this restriction as a has value expression</p> * @return This class, but viewed as a HasValueRestriction node * @exception ConversionException if the class cannot be converted to a has value restriction * given the lanuage profile and the current state of the underlying model. */ @Override public HasValueRestriction asHasValueRestriction() { return as( HasValueRestriction.class ); }
/** * <p>Answer a view of this restriction as a cardinality restriction class expression</p> * @return This class, but viewed as a CardinalityRestriction node * @exception ConversionException if the class cannot be converted to a cardinality restriction * given the lanuage profile and the current state of the underlying model. */ @Override public CardinalityRestriction asCardinalityRestriction() { return as( CardinalityRestriction.class ); }
/** * <p>Answer a view of this restriction as a max cardinality restriction class expression</p> * @return This class, but viewed as a MaxCardinalityRestriction node * @exception ConversionException if the class cannot be converted to a max cardinality restriction * given the lanuage profile and the current state of the underlying model. */ @Override public MaxCardinalityRestriction asMaxCardinalityRestriction() { return as( MaxCardinalityRestriction.class ); }
/** * <p>Answer a view of this restriction as an all values from expression</p> * @return This class, but viewed as an AllValuesFromRestriction node * @exception ConversionException if the class cannot be converted to an all values from restriction * given the lanuage profile and the current state of the underlying model. */ @Override public AllValuesFromRestriction asAllValuesFromRestriction() { return as( AllValuesFromRestriction.class ); }
/** * <p>Answer a view of this restriction as a has value expression</p> * @return This class, but viewed as a HasValueRestriction node * @exception ConversionException if the class cannot be converted to a has value restriction * given the lanuage profile and the current state of the underlying model. */ @Override public HasValueRestriction asHasValueRestriction() { return as( HasValueRestriction.class ); }
/** * <p>Convert this restriction to a has value class expression</p> * @param value The value which the restricted property must have, for resource to be * in the extension of this restriction * @return This class, but converted to a HasValueRestriction * @exception ProfileException if {@link Profile#HAS_VALUE()} is not supported in the current profile */ @Override public HasValueRestriction convertToHasValueRestriction( RDFNode value ) { setPropertyValue( getProfile().HAS_VALUE(), "HAS_VALUE", value ); return as( HasValueRestriction.class ); }
/** * <p>Convert this restriction to an all values from class expression.</p> * @param cls The class to which all values of the restricted property must belong, to be in the * extension of this restriction * @return This class, but converted to a AllValuesFromRestriction class expression * @exception ProfileException if {@link Profile#ALL_VALUES_FROM()} is not supported in the current profile */ @Override public AllValuesFromRestriction convertToAllValuesFromRestriction( Resource cls ) { setPropertyValue( getProfile().ALL_VALUES_FROM(), "ALL_VALUES_FROM", cls ); return as( AllValuesFromRestriction.class ); }
/** * <p>Convert this restriction to a some values from class expression</p> * @param cls The class to which at least one value of the restricted property must belong, to be in the * extension of this restriction * @return This class, but converted to a SomeValuesFromRestriction node * @exception ProfileException if {@link Profile#SOME_VALUES_FROM()} is not supported in the current profile */ @Override public SomeValuesFromRestriction convertToSomeValuesFromRestriction( Resource cls ) { setPropertyValue( getProfile().SOME_VALUES_FROM(), "SOME_VALUES_FROM", cls ); return as( SomeValuesFromRestriction.class ); }
/** * <p>Convert this restriction to an all values from class expression.</p> * @param cls The class to which all values of the restricted property must belong, to be in the * extension of this restriction * @return This class, but converted to a AllValuesFromRestriction class expression * @exception ProfileException if {@link Profile#ALL_VALUES_FROM()} is not supported in the current profile */ @Override public AllValuesFromRestriction convertToAllValuesFromRestriction( Resource cls ) { setPropertyValue( getProfile().ALL_VALUES_FROM(), "ALL_VALUES_FROM", cls ); return as( AllValuesFromRestriction.class ); }
/** * <p>Convert this restriction to a some values from class expression</p> * @param cls The class to which at least one value of the restricted property must belong, to be in the * extension of this restriction * @return This class, but converted to a SomeValuesFromRestriction node * @exception ProfileException if {@link Profile#SOME_VALUES_FROM()} is not supported in the current profile */ @Override public SomeValuesFromRestriction convertToSomeValuesFromRestriction( Resource cls ) { setPropertyValue( getProfile().SOME_VALUES_FROM(), "SOME_VALUES_FROM", cls ); return as( SomeValuesFromRestriction.class ); }
/** * <p>Convert this restriction to a min cardinality restriction class expression</p> * @param cardinality The minimum cardinality for the restricted property * @return This class, but converted to a MinCardinalityRestriction node * @exception ProfileException if {@link Profile#MIN_CARDINALITY()} is not supported in the current profile */ @Override public MinCardinalityRestriction convertToMinCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().MIN_CARDINALITY(), "MIN_CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( MinCardinalityRestriction.class ); }
/** * <p>Convert this restriction to a min cardinality restriction class expression</p> * @param cardinality The minimum cardinality for the restricted property * @return This class, but converted to a MinCardinalityRestriction node * @exception ProfileException if {@link Profile#MIN_CARDINALITY()} is not supported in the current profile */ @Override public MinCardinalityRestriction convertToMinCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().MIN_CARDINALITY(), "MIN_CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( MinCardinalityRestriction.class ); }
/** * <p>Convert this restriction to a max cardinality restriction class expression</p> * @param cardinality The maximum cardinality for the restricted property * @return This class, but converted to a MaxCardinalityRestriction node * @exception ProfileException if {@link Profile#MAX_CARDINALITY()} is not supported in the current profile */ @Override public MaxCardinalityRestriction convertToMaxCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().MAX_CARDINALITY(), "MAX_CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( MaxCardinalityRestriction.class ); }
/** * <p>Convert this restriction to a cardinality restriction class expression</p> * @param cardinality The exact cardinality for the restricted property * @return This class, but converted to a CardinalityRestriction node * @exception ProfileException if {@link Profile#CARDINALITY()} is not supported in the current profile */ @Override public CardinalityRestriction convertToCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().CARDINALITY(), "CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( CardinalityRestriction.class ); }
/** * <p>Convert this restriction to a cardinality restriction class expression</p> * @param cardinality The exact cardinality for the restricted property * @return This class, but converted to a CardinalityRestriction node * @exception ProfileException if {@link Profile#CARDINALITY()} is not supported in the current profile */ @Override public CardinalityRestriction convertToCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().CARDINALITY(), "CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( CardinalityRestriction.class ); }
/** * <p>Convert this restriction to a max cardinality restriction class expression</p> * @param cardinality The maximum cardinality for the restricted property * @return This class, but converted to a MaxCardinalityRestriction node * @exception ProfileException if {@link Profile#MAX_CARDINALITY()} is not supported in the current profile */ @Override public MaxCardinalityRestriction convertToMaxCardinalityRestriction( int cardinality ) { setPropertyValue( getProfile().MAX_CARDINALITY(), "MAX_CARDINALITY", getModel().createTypedLiteral( cardinality ) ); return as( MaxCardinalityRestriction.class ); }