Exemple #1
0
 public void addConstraint() {
   Statement st =
       ((List<StatementWrapper>) statements).get(getStatementPosition()).getAsStatement();
   if (getConstraintPosition() >= st.getLiteralConstraints().size()) {
     ((List<String>) st.getLiteralConstraints()).add("");
   } else {
     ((List<String>) st.getLiteralConstraints()).add(getConstraintPosition() + 1, "");
   }
   collectionSession.setProfile(profile);
 }
Exemple #2
0
 public void removeConstraint() {
   Statement st =
       ((List<StatementWrapper>) statements).get(getStatementPosition()).getAsStatement();
   ((List<String>) st.getLiteralConstraints()).remove(getConstraintPosition());
   collectionSession.setProfile(profile);
 }