Class QueryPattern

java.lang.Object
com.nomagic.reportwizard.tools.query.QueryPattern

@OpenApiAll public class QueryPattern extends Object
Class for handler query pattern.
Since:
Jan 29, 2013
  • Constructor Details

    • QueryPattern

      public QueryPattern()
  • Method Details

    • getType

      public String getType()
      Return element type.
      Returns:
      element type
    • setType

      public void setType(String type)
      Set element type.
      Parameters:
      type - element type
    • isAllType

      public boolean isAllType()
      Return true if element type is specific by *.
      Returns:
      true if element type is specific by * (all type), otherwise false
    • setAllType

      public void setAllType(boolean allType)
      Set true if element type is specific by *.
      Parameters:
      allType - true if element type is specific by *. otherwise false
    • getId

      public String getId()
      Return element id.
      Returns:
      element id
    • setId

      public void setId(String id)
      Set element id.
      Parameters:
      id - element id
    • isNoChild

      public boolean isNoChild()
      Return true if :empty is set to element.
      Returns:
      true if :empty is set to element, otherwise false
    • setNoChild

      public void setNoChild(boolean noChild)
      Set true if :empty is set to element.
      Parameters:
      noChild - true if :empty is set to element, otherwise false
    • getAttributeList

      public List<QueryAttribute> getAttributeList()
      Return element's attribute list.
      Returns:
      element's attribute list
    • setAttributeList

      public void setAttributeList(List<QueryAttribute> attributeList)
      Set element's attribute list.
      Parameters:
      attributeList - element's attribute list
    • isOnlyChildElement

      public boolean isOnlyChildElement()
      Return true if query by child element .
      Returns:
      true if query element by child element, otherwise false
    • setOnlyChildElement

      public void setOnlyChildElement(boolean isOnlyChild)
      Set true if query by child element.
      Parameters:
      isOnlyChild - true if query by child element, otherwise false
    • formatToCamelCase

      public static String formatToCamelCase(String string)
      Convert text to camel-case.
      Parameters:
      string - original string
      Returns:
      string in camel-case format
    • addAttribute

      public void addAttribute(QueryAttribute queryAttr)
      Add attribute condition for the element.
      Parameters:
      queryAttr - a QueryAttribute
    • addAttribute

      public void addAttribute(String attrName, String attrValue, int matchingType)
      Add attribute condition for the element.
      Parameters:
      attrName - an attribute name
      attrValue - an attribute value
      matchingType - an attribute matching type
    • getLastAttribute

      public QueryAttribute getLastAttribute()
      Get a last attribute form attribute list.
      Returns:
      a last attribute
    • getQueryPatternString

      public String getQueryPatternString()
      Return query pattern.
      Returns:
      query pattern