Class LoadAdvancedFindCriteria

java.lang.Object
wt.structadvancedfind.load.LoadAdvancedFindCriteria

public final class LoadAdvancedFindCriteria extends Object
Creates and persists Advanced Find Criteria objects based on input from a xml load file. Loader supports load methods for following objects.

AdvancedFindCriteria Objects
  1. AdvancedFindCriteria - AdvancedFindCriteria
  2. AttributeStructFilterRule - AttributeStructFilterRule
  3. AttributeStructFilterExpression - AttributeStructFilterExpression
  4. ShowAdvancedFindCriteriaLink - ShowAdvancedFindCriteriaLink

The load methods use a StandardLoadService cache to cache various objects to improve performance while creating objects.

Supported API: true

Extendable: false
  • Method Details

    • beginCreateAdvancedFindCriteria

      public static boolean beginCreateAdvancedFindCriteria(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws Exception
      Processes the "csvBeginAdvancedFindCriteria" directive in the XML load file.

      Tag is used along with other csvBeginAdvancedFindCriteriaRule and csvAdvancedFindCriteriaExpression etc.

      When using wt.load.LoadFromFile to load AdvancedFindCriteria, use the following XML format:

      Create a group object.

      XML Format

      XML Format
      <csvBeginAdvancedFindCriteria handler="wt.structadvancedfind.load.LoadAdvancedFindCriteria.beginCreateAdvancedFindCriteria"
        <csvname> < AdvancedFindCriteriaName </csvname>
      <csvsharedToAll> shared to all boolen value </csvsharedToAll
      <csvshowInMenu> Show In Menu boolean value </csvshowInMenu>
      <csvuser> Name of the User </csvuser>
      </csvBeginAdvancedFindCriteria


      Supported API: true
      Parameters:
      nv - The nv parameter is a hash table of the attribute names from the map file as the keys and the corresponding strings from one line of the data file as the value. This holds the Name/Value pairs of distribution target link attributes.
      cmd_line - command line argument that can contain supplemental load data. The cmd_line parameter is a hash table of the extra attributes from the command line (parameters not defined in the interface). This allows substitution of values from the command line into the data file at runtime.
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      result
      true success
      false failure
      Throws:
      Exception
      See Also:
    • beginCreateAdvancedFindCriteriaRule

      public static boolean beginCreateAdvancedFindCriteriaRule(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException, WTPropertyVetoException
      Processes the "csvBeginAdvancedFindCriteriaRule" directive in the XML load file.

      Tag is used along with other csvBeginAdvancedFindCriteriaRule and csvAdvancedFindCriteriaExpression etc.

      When using wt.load.LoadFromFile to load AttributeStructFilterRule, use the following XML format:

      Create a AdvancedFindCriteriaRule object.

      XML Format

      XML Format
      <csvBeginAdvancedFindCriteriaRule handler="wt.structadvancedfind.load.LoadAdvancedFindCriteria.BeginAdvancedFindCriteriaRule"
        <csvobjectTypeIdentifier> < Name of the type for rule </csvobjectTypeIdentifier>
      </csvBeginAdvancedFindCriteriaRule

      Supported API: true
      Parameters:
      nv - The nv parameter is a hash table of the attribute names from the map file as the keys and the corresponding strings from one line of the data file as the value. This holds the Name/Value pairs of distribution target link attributes.
      cmd_line - command line argument that can contain supplemental load data. The cmd_line parameter is a hash table of the extra attributes from the command line (parameters not defined in the interface). This allows substitution of values from the command line into the data file at runtime.
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      result
      true success
      false failure
      Throws:
      WTException
      WTPropertyVetoException
      See Also:
    • createAdvancedFindCriteriaExpression

      public static boolean createAdvancedFindCriteriaExpression(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws Exception
      Processes the "csvAdvancedFindCriteriaExpression" directive in the XML load file.

      Tag requires the csvBeginAdvancedFindCriteriaRule.

      When using wt.load.LoadFromFile to load AdvancedFindCriteria, use the following XML format:

      Create a group object.

      XML Format

      any enum value from the class
      XML Format
      <csvAdvancedFindCriteriaExpression handler="wt.structadvancedfind.load.LoadAdvancedFindCriteria.advancedFindCriteriaExpression"
        <csvattributeObjectType> < Type name of attribute like wt.part.WTPart </csvattributeObjectType>
      <csvattributeName> name of attribute like number or name etc. </csvattributeName
      <csvcomparison>@ {@link .wt.structfilter.rule.attribute.AttributeStructFilterComparison} </csvcomparison>
      <csvvalue> value for expression </csvvalue>
      </csvAdvancedFindCriteriaExpression


      Supported API: true
      Parameters:
      nv - The nv parameter is a hash table of the attribute names from the map file as the keys and the corresponding strings from one line of the data file as the value. This holds the Name/Value pairs of distribution target link attributes.
      cmd_line - command line argument that can contain supplemental load data. The cmd_line parameter is a hash table of the extra attributes from the command line (parameters not defined in the interface). This allows substitution of values from the command line into the data file at runtime.
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      result
      true success
      false failure
      Throws:
      Exception
      See Also:
    • endCreateAdvancedFindCriteriaRule

      public static boolean endCreateAdvancedFindCriteriaRule(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException, WTPropertyVetoException
      Processes the "csvEndAdvancedFindCriteriaRule" directive in the XML load file.
      When using wt.load.LoadFromFile to load AttributeStructFilterRule, use the following XML format:

      Create a group object.

      XML Format

      XML Format
      <csvEndAdvancedFindCriteriaRule handler="wt.structadvancedfind.load.LoadAdvancedFindCriteria.endCreateAdvancedFindCriteriaRule"


      Supported API: true
      Parameters:
      nv - The nv parameter is a hash table of the attribute names from the map file as the keys and the corresponding strings from one line of the data file as the value. This holds the Name/Value pairs of distribution target link attributes.
      cmd_line - command line argument that can contain supplemental load data. The cmd_line parameter is a hash table of the extra attributes from the command line (parameters not defined in the interface). This allows substitution of values from the command line into the data file at runtime.
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      result
      true success
      false failure
      Throws:
      WTException
      WTPropertyVetoException
      See Also:
    • endCreateAdvancedFindCriteria

      public static boolean endCreateAdvancedFindCriteria(Hashtable nv, Hashtable cmd_line, Vector return_objects) throws WTException, WTPropertyVetoException
      Processes the "csvEndAdvancedFindCriteria" directive in the XML load file.

      Tag is used along with other csvEndAdvancedFindCriteriaRule and csvAdvancedFindCriteriaExpression etc.

      When using wt.load.LoadFromFile to load AdvancedFindCriteria, use the following XML format:

      Create a group object.

      XML Format

      XML Format
      <csvEndAdvancedFindCriteria handler="wt.structadvancedfind.load.LoadAdvancedFindCriteria.endCreateAdvancedFindCriteria"


      Supported API: true
      Parameters:
      nv - The nv parameter is a hash table of the attribute names from the map file as the keys and the corresponding strings from one line of the data file as the value. This holds the Name/Value pairs of distribution target link attributes.
      cmd_line - command line argument that can contain supplemental load data. The cmd_line parameter is a hash table of the extra attributes from the command line (parameters not defined in the interface). This allows substitution of values from the command line into the data file at runtime.
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      result
      true success
      false failure
      Throws:
      WTException
      WTPropertyVetoException
      See Also: