Class AbstractRule
- java.lang.Object
-
- com._1c.g5.aef2.standard.definitions.rules.AbstractRule
-
- com._1c.g5.v8.dt.ui.aef.definitions.rules.AbstractRule
-
- All Implemented Interfaces:
IRule
- Direct Known Subclasses:
AbstractAdoptedObjectRule
,AbstractSingleTypeRule
,DataHistoryRule
,DisableAllRule
,UnsettableRule
public abstract class AbstractRule extends AbstractRule implements IRule
The basic implementation ofIRule
.
-
-
Constructor Summary
Constructors Constructor Description AbstractRule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
buildSingleObject(Object object)
Builds statements for each of selected object.protected abstract void
buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Builds statements for each of selected object.protected IV8Project
getProject(IDtRuleInput input, org.eclipse.emf.ecore.EObject object)
Returns v8 project by given editing object.IRuleResult
getResult(IRuleInput input)
Returns the result of the rule.protected boolean
isMobileApplicationOnly(IV8Project v8Project)
The specifiedIV8Project
is only for mobile applications-
Methods inherited from class com._1c.g5.aef2.standard.definitions.rules.AbstractRule
componentDefinition, componentDefinition, componentDefinition, componentDefinition, componentDefinition, componentTarget, disable, disable, disable, disable, disable, enable, enable, enable, enable, enable, hide, hide, hide, hide, hide, multiFeatureDisable, multiFeatureEnable, multiFeatureHide, multiFeatureShow, show, show, show, show, show
-
-
-
-
Method Detail
-
getResult
public IRuleResult getResult(IRuleInput input)
Description copied from interface:IRule
Returns the result of the rule.- Specified by:
getResult
in interfaceIRule
- Overrides:
getResult
in classAbstractRule
- Parameters:
input
- the input.- Returns:
- the
IRuleResult
instance.
-
buildSingleObject
protected final void buildSingleObject(Object object)
Description copied from class:AbstractRule
Builds statements for each of selected object.- Specified by:
buildSingleObject
in classAbstractRule
- Parameters:
object
- the object, cannot benull
.
-
getProject
protected IV8Project getProject(IDtRuleInput input, org.eclipse.emf.ecore.EObject object)
Returns v8 project by given editing object.- Parameters:
input
- the rule input, nevernull
object
- the editing object, nevernull
- Returns:
- v8 project or null
-
isMobileApplicationOnly
protected boolean isMobileApplicationOnly(IV8Project v8Project)
The specifiedIV8Project
is only for mobile applications- Parameters:
v8Project
- theIV8Project
for check, cannot benull
- Returns:
true
if givenIV8Project
is only for mobile applications,false
in otherwise
-
buildSingleObject
protected abstract void buildSingleObject(org.eclipse.emf.ecore.EObject object, IV8Project v8project)
Builds statements for each of selected object.- Parameters:
object
- the object.v8project
- the V8 project for object.
-
-