Class FormItemVisitor
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.item.FormItemVisitor
-
- All Implemented Interfaces:
Visitors.IVisitor
public class FormItemVisitor extends Object implements Visitors.IVisitor
SpecialVisitors.IVisitor
for form item elements This class implements pattern "Strategy", so it has possibility for changing behavior of processing of each form item
-
-
Constructor Summary
Constructors Constructor Description FormItemVisitor(IFormItemCommand command)
FormItemVisitor(IFormItemCommand command, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> stopVisitingCondition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
_infer(Addition item)
protected boolean
_infer(Decoration item)
protected boolean
_infer(Form form)
protected boolean
_infer(FormField item)
protected boolean
_infer(FormItem item)
protected boolean
_infer(Group item)
protected boolean
_infer(Table item)
protected boolean
_infer(org.eclipse.emf.ecore.EObject eObject)
boolean
infer(org.eclipse.emf.ecore.EObject item)
boolean
visit(org.eclipse.emf.ecore.EObject eObject)
Visits the given object.
-
-
-
Constructor Detail
-
FormItemVisitor
public FormItemVisitor(IFormItemCommand command, com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> stopVisitingCondition)
-
FormItemVisitor
public FormItemVisitor(IFormItemCommand command)
-
-
Method Detail
-
visit
public boolean visit(org.eclipse.emf.ecore.EObject eObject)
Description copied from interface:Visitors.IVisitor
Visits the given object. Returns whether the contents of the object should also be visited.- Specified by:
visit
in interfaceVisitors.IVisitor
- Parameters:
eObject
- notnull
- Returns:
true
if the contents of the given object should be visited, andfalse
otherwise
-
_infer
protected boolean _infer(org.eclipse.emf.ecore.EObject eObject)
-
_infer
protected boolean _infer(Form form)
-
_infer
protected boolean _infer(Addition item)
-
_infer
protected boolean _infer(FormField item)
-
_infer
protected boolean _infer(Decoration item)
-
_infer
protected boolean _infer(Table item)
-
_infer
protected boolean _infer(Group item)
-
_infer
protected boolean _infer(FormItem item)
-
infer
public boolean infer(org.eclipse.emf.ecore.EObject item)
-
-