Package lupos.gui.operatorgraph.visualeditor.visualrif.operators

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.operators.PrefixOperator


  // Visit
  @Override
  public Object visit(final Document obj, final Object arg) throws RIFException {
    // Prefix + Base
    if (!obj.getPrefixMap().isEmpty() || obj.getBaseNamespace() != null) {
      this.po = new PrefixOperator();
      int prefixCnt = 0;

      // Base
      if (obj.getBaseNamespace() != null) {
        this.po.addEntry("BASE", obj.getBaseNamespace());
View Full Code Here


//        saveObject.put(ro.getRuleName(), ro.toJSON(connectionsObject));
//      }
     
      // Prefix
      if (op instanceof PrefixOperator){
        PrefixOperator po = ( PrefixOperator ) op;
        saveObject.put("PREFIXOPERATOR", po.toJSON(connectionsObject));
      }
    }

    if(connectionsObject.length() > 0) {
      saveObject.put("CONNECTIONS", connectionsObject);
View Full Code Here

      Operator op = null;


     
      if(opLoadObject.has("OP TYPE") && opLoadObject.getString("OP TYPE").equals("PrefixOperator")) {
        op = new PrefixOperator(opLoadObject);
      }
     


      JSONArray positionArray = opLoadObject.getJSONArray("POSITION");
View Full Code Here

      this.createNewRule(ro);
    }

    // add Prefix
    if ( newOp instanceof PrefixOperator ){
      final PrefixOperator po = (PrefixOperator) newOp;
      this.createNewPrefix(po);
    }

    // add Import
    if ( newOp instanceof ImportOperator ){
View Full Code Here

      for (int i = 0; i < rootNodes.length; i++) {

        // Prefix
        if (rootNodes[i] instanceof PrefixOperator){
          final PrefixOperator prefixOperator = (PrefixOperator) rootNodes[i];

          final GraphWrapperOperator gwo = new GraphWrapperOperator(prefixOperator);

          rootList.add(gwo);
        }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.visualrif.operators.PrefixOperator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.