Class BpSchemeUtil
java.lang.Object
com._1c.g5.v8.dt.bp.scheme.services.BpSchemeUtil
Support class for bp scheme.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateItemAddressingAttribute(AddressingAttribute addressingAttribute) Creates scheme item addressing attribute with undefined value.static StringgetAvailableName(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.static StringgetAvailableName(String desiredName, Collection<String> takenNames) Returns available name.static StringReturns current JVM language.static booleanReturnstrueif current JVM language is russian.
-
Field Details
-
UNKNOWN_BM_ID
public static final long UNKNOWN_BM_IDUnknown bm id. If item returns this id, it means that item does not have attached to bm model object.- See Also:
-
-
Method Details
-
getLanguage
Returns current JVM language.- Returns:
- current JVM language. Can't return
null.
-
isRussianLocale
public static boolean isRussianLocale()Returnstrueif current JVM language is russian.- Returns:
trueif 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 benull.diagramCore- - diagram core. Can't benull.- Returns:
- available name. Can't return
null.
-
getAvailableName
Returns available name. If item with given name already on diagram, adds number to given name.- Parameters:
desiredName- - desired name. Can't benull.takenNames- - already taken names. Can't benull.- 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 benull.- Returns:
- created scheme item addressing attribute. Can't return
null.
-