Class Selector

    • Field Detail

      • compound

        protected List compound
      • isUsed

        protected boolean isUsed
      • title

        protected String title
      • template

        protected String template
      • required

        protected boolean required
      • multiple

        protected boolean multiple
    • Constructor Detail

      • Selector

        protected Selector()
      • Selector

        protected Selector​(String title,
                           String id,
                           String template,
                           String required,
                           String multiple)
        Construct from fields in XML catalog.
        Parameters:
        title - : human displayable name
        id - : unique id
        template - : for the query string
        required - : true or false
        multiple - : true or false
    • Method Detail

      • getTitle

        public String getTitle()
      • setTitle

        public void setTitle​(String title)
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getTemplate

        public String getTemplate()
      • setTemplate

        public void setTemplate​(String template)
      • isRequired

        public boolean isRequired()
      • setRequired

        public void setRequired​(String required)
      • isMultiple

        public boolean isMultiple()
      • setMultiple

        public void setMultiple​(String multiple)
      • getSelectType

        public String getSelectType()
      • setCompoundSelectors

        public void setCompoundSelectors​(List compound)
      • isUsed

        public boolean isUsed()
      • setUsed

        public void setUsed​(boolean isUsed)
      • appendQuery

        public void appendQuery​(StringBuffer sbuff,
                                ArrayList values)
        Create the selector result string, and append.
        Parameters:
        sbuff - append here
        values - list of selected values, each value is a pair (String, Object), where the String is name of the value, and the Object is the value itself. We use the toString() method on the object to get its String representation.
      • equals

        public boolean equals​(Object o)
        Instances which have same id are equal.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Override Object.hashCode() to be consistent with this equals.
        Overrides:
        hashCode in class Object