Class ProcedureParameters

java.lang.Object
com._1c.g5.v8.dt.bsl.ui.event.ProcedureParameters

public class ProcedureParameters extends Object
Procedure parameters store for inserting procedure into the module
  • Constructor Details

    • ProcedureParameters

      public ProcedureParameters(ProcedureDirective directive, String annotation, boolean withReference, boolean isInternal)
      Constructor
      Parameters:
      directive - ProcedureDirective, cannot be null
      annotation - String externally defined annotation, can be null or empty. Empty externally setted annotation means that no annotation will be applied to procedure at all.
      withReference - is procedure have reference to internal implementation or service export procedure
      isInternal - is procedure an internal implementation or service export procedure
    • ProcedureParameters

      public ProcedureParameters(ProcedureDirective directive, boolean withReference, boolean isInternal)
      Constructor with no externally setted annotation
      Parameters:
      directive - ProcedureDirective, cannot be null
      withReference - is procedure have reference to internal implementation or service export procedure
      isInternal - is procedure an internal implementation or service export procedure
    • ProcedureParameters

      public ProcedureParameters(ProcedureDirective directive, String annotation)
      Constructor for not internal procedure with no reference inside
      Parameters:
      directive - ProcedureDirective, cannot be null
      annotation - String externally defined annotation, can be null or empty. Empty externally setted annotation means that no annotation will be applied to procedure at all.
    • ProcedureParameters

      public ProcedureParameters(ProcedureDirective directive)
      Constructor for not internal procedure with no reference inside and no externally setted annotation
      Parameters:
      directive - ProcedureDirective, cannot be null
  • Method Details

    • getPrefix

      public String getPrefix()
      Procedure name prefix
      Returns:
      String prefix, cannot be null
    • addPrefix

      public void addPrefix(String prefix)
      Adds procedure name prefix
      Parameters:
      prefix - String prefix, cannot be null
    • getSuffix

      public String getSuffix(boolean isRussian)
      Localized procedure suffix based on current directive
      Parameters:
      isRussian - localization flag
      Returns:
      String procedure suffix, cannot be null
    • addSuffix

      public void addSuffix(String suffix)
      Adds procedure name suffix
      Parameters:
      suffix - String suffix, cannot be null
    • getAnnotation

      public String getAnnotation(boolean isRussian)
      Get procedure annotation
      Parameters:
      isRussian - localization flag
      Returns:
      externally setted localized String annotation if setted or directive-based String annotation or empty String
    • externalAnnotation

      public boolean externalAnnotation()
      Is annotation externally setted
      Returns:
      true if procedure annotation is externally setted, false otherwise
    • withReference

      public boolean withReference()
      Is procedure have reference to internal implementation or service export procedure
      Returns:
      true if procedure have reference to internal or export procedure, false otherwise
    • isInternal

      public boolean isInternal()
      Is procedure an internal implementation or service export procedure
      Returns:
      true if procedure is export or internal, false otherwise