Package com._1c.g5.v8.dt.bsl.ui.event
Class ProcedureParameters
java.lang.Object
com._1c.g5.v8.dt.bsl.ui.event.ProcedureParameters
Procedure parameters store for inserting procedure into the module
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureParameters
(ProcedureDirective directive) Constructor for not internal procedure with no reference inside and no externally setted annotationProcedureParameters
(ProcedureDirective directive, boolean withReference, boolean isInternal) Constructor with no externally setted annotationProcedureParameters
(ProcedureDirective directive, String annotation) Constructor for not internal procedure with no reference insideProcedureParameters
(ProcedureDirective directive, String annotation, boolean withReference, boolean isInternal) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds procedure name prefixvoid
Adds procedure name suffixboolean
Is annotation externally settedgetAnnotation
(boolean isRussian) Get procedure annotationProcedure name prefixgetSuffix
(boolean isRussian) Localized procedure suffix based on current directiveboolean
Is procedure an internal implementation or service export procedureboolean
Is procedure have reference to internal implementation or service export procedure
-
Constructor Details
-
ProcedureParameters
public ProcedureParameters(ProcedureDirective directive, String annotation, boolean withReference, boolean isInternal) Constructor- Parameters:
directive
-ProcedureDirective
, cannot benull
annotation
-String
externally defined annotation, can benull
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 procedureisInternal
- is procedure an internal implementation or service export procedure
-
ProcedureParameters
Constructor with no externally setted annotation- Parameters:
directive
-ProcedureDirective
, cannot benull
withReference
- is procedure have reference to internal implementation or service export procedureisInternal
- is procedure an internal implementation or service export procedure
-
ProcedureParameters
Constructor for not internal procedure with no reference inside- Parameters:
directive
-ProcedureDirective
, cannot benull
annotation
-String
externally defined annotation, can benull
or empty. Empty externally setted annotation means that no annotation will be applied to procedure at all.
-
ProcedureParameters
Constructor for not internal procedure with no reference inside and no externally setted annotation- Parameters:
directive
-ProcedureDirective
, cannot benull
-
-
Method Details
-
getPrefix
Procedure name prefix- Returns:
String
prefix, cannot be null
-
addPrefix
Adds procedure name prefix- Parameters:
prefix
-String
prefix, cannot be null
-
getSuffix
Localized procedure suffix based on current directive- Parameters:
isRussian
- localization flag- Returns:
String
procedure suffix, cannot be null
-
addSuffix
Adds procedure name suffix- Parameters:
suffix
-String
suffix, cannot be null
-
getAnnotation
Get procedure annotation -
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
-