Class BpSchemeUtil

java.lang.Object
com._1c.g5.v8.dt.bp.scheme.services.BpSchemeUtil

public class BpSchemeUtil extends Object
Support class for bp scheme.
  • Field Details

    • UNKNOWN_BM_ID

      public static final long UNKNOWN_BM_ID
      Unknown bm id. If item returns this id, it means that item does not have attached to bm model object.
      See Also:
  • Method Details

    • getLanguage

      public static String getLanguage()
      Returns current JVM language.
      Returns:
      current JVM language. Can't return null.
    • isRussianLocale

      public static boolean isRussianLocale()
      Returns true if current JVM language is russian.
      Returns:
      true if current JVM language is russian.
    • getAvailableName

      public static String getAvailableName(String desiredName, com._1c.g5.v8.dt.diagram.framework.IDiagramCore<? extends com._1c.g5.v8.dt.diagram.framework.IEntity,? extends BpRelation> diagramCore)
      Returns available name. If item with given name already on diagram, adds number to given name.
      Parameters:
      desiredName - - desired name. Can't be null.
      diagramCore - - diagram core. Can't be null.
      Returns:
      available name. Can't return null.
    • getAvailableName

      public static String getAvailableName(String desiredName, Collection<String> takenNames)
      Returns available name. If item with given name already on diagram, adds number to given name.
      Parameters:
      desiredName - - desired name. Can't be null.
      takenNames - - already taken names. Can't be null.
      Returns:
      available name. Can't return null.
    • createItemAddressingAttribute

      public static SchemeItemAddressingAttribute createItemAddressingAttribute(AddressingAttribute addressingAttribute)
      Creates scheme item addressing attribute with undefined value.
      Parameters:
      addressingAttribute - - addressing attribute to create scheme item addressing attribute. Can't be null.
      Returns:
      created scheme item addressing attribute. Can't return null.