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 TypeMethodDescriptionvoidAdds procedure name prefixvoidAdds procedure name suffixbooleanIs annotation externally settedgetAnnotation(boolean isRussian) Get procedure annotationProcedure name prefixgetSuffix(boolean isRussian) Localized procedure suffix based on current directivebooleanIs procedure an internal implementation or service export procedurebooleanIs 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 benullannotation-Stringexternally defined annotation, can benullor 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 benullwithReference- 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 benullannotation-Stringexternally defined annotation, can benullor 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:
Stringprefix, cannot be null
-
addPrefix
Adds procedure name prefix- Parameters:
prefix-Stringprefix, cannot be null
-
getSuffix
Localized procedure suffix based on current directive- Parameters:
isRussian- localization flag- Returns:
Stringprocedure suffix, cannot be null
-
addSuffix
Adds procedure name suffix- Parameters:
suffix-Stringsuffix, cannot be null
-
getAnnotation
Get procedure annotation -
externalAnnotation
public boolean externalAnnotation()Is annotation externally setted- Returns:
trueif procedure annotation is externally setted,falseotherwise
-
withReference
public boolean withReference()Is procedure have reference to internal implementation or service export procedure- Returns:
trueif procedure have reference to internal or export procedure,falseotherwise
-
isInternal
public boolean isInternal()Is procedure an internal implementation or service export procedure- Returns:
trueif procedure is export or internal,falseotherwise
-