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); }
public void removeConstraint() { Statement st = ((List<StatementWrapper>) statements).get(getStatementPosition()).getAsStatement(); ((List<String>) st.getLiteralConstraints()).remove(getConstraintPosition()); collectionSession.setProfile(profile); }