Class Pattern

java.lang.Object
com.semedy.reasoner.parser.graphql.Pattern

public class Pattern extends Object
Pattern for GraphQL outputs
Author:
angele
  • Constructor Details

    • Pattern

      public Pattern()
  • Method Details

    • add

      public void add(Property p)
      add a property
      Parameters:
      p - , property
    • get

      public Property get(String name)
      get a property by name
      Parameters:
      name -
      Returns:
    • has

      public boolean has(String name)
      is property with name there?
      Parameters:
      name -
      Returns:
    • remove

      public Property remove(String name)
      remove a property by name
      Parameters:
      name -
      Returns:
    • put

      public void put(String name, String variable, Object value, boolean inc)
      Create a property
      Parameters:
      name - , name of the property
      variable - , variable for the property
      value - , value of the property
      inc - , should property be included in the output
    • put

      public void put(String name, String variable, boolean inc)
      Create a property
      Parameters:
      name - , name of the property
      variable - , variable for the property
      inc - , should property be included in the output
    • getNames

      public String[] getNames()
      get all property names
      Returns:
    • setType

      public void setType(String type)
      set the type of a property
      Parameters:
      type -
    • toString

      public String toString(int ident)
    • toString

      public String toString()
      Overrides:
      toString in class Object