knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowSHACL::Constraint Class Reference

#include <Constraint.h>

Classes

struct  Private
 

Public Types

enum class  Type {
  Empty , Class , Datatype , Disjoint ,
  Equals , HasValue , In , LanguageIn ,
  LessThan , LessThanOrEquals , MaxCount , MinCount ,
  MaxLength , MinLength , MaxExclusive , MinExclusive ,
  MaxInclusive , MinInclusive , NodeKind , Node ,
  QualifiedValue , Pattern , Property , UniqueLang ,
  And , Or , Not , XOne
}
 

Public Member Functions

 Constraint (const Constraint &_rhs)
 
Constraintoperator= (const Constraint &_rhs)
 
Type type () const
 
PropertyShape property () const
 
knowCore::Value value () const
 
QList< NodeShapenodes () const
 
NodeShape node () const
 
template<typename _T_ >
knowCore::ReturnValue< _T_ > value () const
 
QRegExp pattern () const
 
std::optional< int > qualifiedMinCount () const
 
std::optional< int > qualifiedMaxCount () const
 
bool qualifiedDisjoint () const
 

Friends

class details::DefinitionParser
 

Detailed Description

Represents a Constraint

Member Function Documentation

◆ nodes()

QList< NodeShape > Constraint::nodes ( ) const
Returns
the children Constraints (only valid if type() != Property)

◆ property()

PropertyShape Constraint::property ( ) const
Returns
the property (only valid if type() == Property)

◆ type()

Constraint::Type Constraint::type ( ) const
Returns
the type of Constraint

◆ value()

knowCore::Value Constraint::value ( ) const
Returns
the property (only valid if type() == Property)

The documentation for this class was generated from the following files: