Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.sdmlib.models.transformations.util;
  
  
 {
 
    public ChoiceTemplateSet allMatches()
    {
       this.setDoAllMatches(true);
 
       ChoiceTemplateSet matches = new ChoiceTemplateSet();
 
       while (this.getPattern().getHasMatch())
       {
          matches.add((ChoiceTemplatethis.getCurrentMatch());
 
          this.getPattern().findMatch();
       }
 
       return matches;
    }
 
    public ChoiceTemplatePO()
    {
       newInstance(org.sdmlib.models.transformations.util.CreatorCreator.createIdMap("PatternObjectType"));
    }
 
    public ChoiceTemplatePO(ChoiceTemplate... hostGraphObject)
    {
       if (hostGraphObject == null || hostGraphObject.length < 1)
       {
          return;
       }
       newInstance(org.sdmlib.models.transformations.util.CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
    }
 
    public ChoiceTemplatePO hasTemplateText(String value)
    {
       new AttributeConstraint()
          .withTgtValue(value)
          .withSrc(this)
          .withModifier(this.getPattern().getModifier())
          .withPattern(this.getPattern());
 
       super.hasAttr();
 
       return this;
    }
 
    public ChoiceTemplatePO hasTemplateText(String lowerString upper)
    {
       new AttributeConstraint()
          .withTgtValue(lower)
          .withUpperTgtValue(upper)
          .withSrc(this)
          .withModifier(this.getPattern().getModifier())
          .withPattern(this.getPattern());
 
       super.hasAttr();
 
       return this;
    }
 
    {
       this.startCreate().hasTemplateText(value).endCreate();
       return this;
    }
 
    public String getTemplateText()
    {
       if (this.getPattern().getHasMatch())
       {
          return ((ChoiceTemplategetCurrentMatch()).getTemplateText();
       }
       return null;
    }
 
    public ChoiceTemplatePO withTemplateText(String value)
    {
       if (this.getPattern().getHasMatch())
       {
          ((ChoiceTemplategetCurrentMatch()).setTemplateText(value);
       }
       return this;
    }
 
    public ChoiceTemplatePO hasExpandedText(String value)
    {
       new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasExpandedText(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasExpandedText(value).endCreate();
      return this;
   }
   public String getExpandedText()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getExpandedText();
      }
      return null;
   }
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setExpandedText(value);
      }
      return this;
   }
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasModelObject(value).endCreate();
      return this;
   }
   public Object getModelObject()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getModelObject();
      }
      return null;
   }
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setModelObject(value);
      }
      return this;
   }
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasModelClassName(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasModelClassName(value).endCreate();
      return this;
   }
   public String getModelClassName()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getModelClassName();
      }
      return null;
   }
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setModelClassName(value);
      }
      return this;
   }
   public ChoiceTemplatePO hasListStart(String value)
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasListStart(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasListStart(value).endCreate();
      return this;
   }
   public String getListStart()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getListStart();
      }
      return null;
   }
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setListStart(value);
      }
      return this;
   }
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasListSeparator(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasListSeparator(value).endCreate();
      return this;
   }
   public String getListSeparator()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getListSeparator();
      }
      return null;
   }
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setListSeparator(value);
      }
      return this;
   }
   public ChoiceTemplatePO hasListEnd(String value)
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasListEnd(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   {
      this.startCreate().hasListEnd(value).endCreate();
      return this;
   }
   public String getListEnd()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getListEnd();
      }
      return null;
   }
   public ChoiceTemplatePO withListEnd(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setListEnd(value);
      }
      return this;
   }
   public ChoiceTemplatePO hasReferenceLookup(boolean value)
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO createReferenceLookup(boolean value)
   {
      this.startCreate().hasReferenceLookup(value).endCreate();
      return this;
   }
   public boolean getReferenceLookup()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getReferenceLookup();
      }
      return false;
   }
   public ChoiceTemplatePO withReferenceLookup(boolean value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setReferenceLookup(value);
      }
      return this;
   }
   public ChoiceTemplatePO hasName(String value)
   {
      new AttributeConstraint()
         .withTgtValue(value)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO hasName(String lowerString upper)
   {
      new AttributeConstraint()
         .withTgtValue(lower)
         .withUpperTgtValue(upper)
         .withSrc(this)
         .withModifier(this.getPattern().getModifier())
         .withPattern(this.getPattern());
      super.hasAttr();
      return this;
   }
   public ChoiceTemplatePO createName(String value)
   {
      this.startCreate().hasName(value).endCreate();
      return this;
   }
   public String getName()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplategetCurrentMatch()).getName();
      }
      return null;
   }
   public ChoiceTemplatePO withName(String value)
   {
      if (this.getPattern().getHasMatch())
      {
         ((ChoiceTemplategetCurrentMatch()).setName(value);
      }
      return this;
   }
   {
      {});
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      return result;
   }
   {
      return this.startCreate().hasPlaceholders().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasPlaceholders(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Templatethis.getCurrentMatch()).getPlaceholders();
      }
      return null;
   }
   public TemplatePO hasChoices()
   {
      TemplatePO result = new TemplatePO(new Template[]
      {});
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      return result;
   }
   public TemplatePO createChoices()
   {
      return this.startCreate().hasChoices().endCreate();
   }
   {
   }
   {
      return this.startCreate().hasChoices(tgt).endCreate();
   }
   public TemplateSet getChoices()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((ChoiceTemplatethis.getCurrentMatch()).getChoices();
      }
      return null;
   }
   {
      ChoiceTemplatePO result = new ChoiceTemplatePO(new ChoiceTemplate[]
      {});
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      return result;
   }
   {
      return this.startCreate().hasChooser().endCreate();
   }
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasChooser(tgt).endCreate();
   }
   public ChoiceTemplate getChooser()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Templatethis.getCurrentMatch()).getChooser();
      }
      return null;
   }
   public MatchPO hasMatches()
   {
      MatchPO result = new MatchPO(new Match[]
      {});
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      return result;
   }
   public MatchPO createMatches()
   {
      return this.startCreate().hasMatches().endCreate();
   }
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasMatches(tgt).endCreate();
   }
   public MatchSet getMatches()
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Templatethis.getCurrentMatch()).getMatches();
      }
      return null;
   }
   {
      {});
      result.setModifier(this.getPattern().getModifier());
      super.hasLink(.result);
      return result;
   }
   {
      return this.startCreate().hasParents().endCreate();
   }
   {
      return hasLinkConstraint(tgt.);
   }
   {
      return this.startCreate().hasParents(tgt).endCreate();
   }
   {
      if (this.getPattern().getHasMatch())
      {
         return ((Templatethis.getCurrentMatch()).getParents();
      }
      return null;
   }
New to GrepCode? Check out our FAQ X