All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sdmlib.serialization.util.SDMLibJsonIdMapPO Maven / Gradle / Ivy

Go to download

SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.

There is a newer version: 2.3.2341
Show newest version
package org.sdmlib.serialization.util;

import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.serialization.SDMLibJsonIdMap;

public class SDMLibJsonIdMapPO extends
      PatternObject
{
   public SDMLibJsonIdMapPO(){
      newInstance(CreatorCreator.createIdMap("PatternObjectType"));
   }

   public SDMLibJsonIdMapPO(SDMLibJsonIdMap... hostGraphObject) {
      if(hostGraphObject==null || hostGraphObject.length<1){
         return ;
      }
      newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
  }
   public SDMLibJsonIdMapSet allMatches()
   {
      this.setDoAllMatches(true);

      SDMLibJsonIdMapSet matches = new SDMLibJsonIdMapSet();

      while (this.getPattern().getHasMatch())
      {
         matches.add((SDMLibJsonIdMap) this.getCurrentMatch());

         this.getPattern().findMatch();
      }

      return matches;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy