public class DuplicateVisitor extends java.lang.Object implements PartVisitor<PartManager.Part>
Constructor and Description |
---|
DuplicateVisitor(PartOwner owner) |
Modifier and Type | Method and Description |
---|---|
<O extends PartOwner,P extends PartManager.Part<O>> |
visitOwner(PartOwnerFactory<O> manager,
O original)
duplicate all children of a
PartOwner into the current cached owner. |
PartManager.Part |
visitPage(PageManager.Page p) |
PartManager.Part |
visitQuestion(QuestionManager.Question p) |
PartManager.Part |
visitSection(SectionManager.Section p) |
public <O extends PartOwner,P extends PartManager.Part<O>> void visitOwner(PartOwnerFactory<O> manager, O original) throws DataException
PartOwner
into the current cached owner.manager
- original
- DataException
public PartManager.Part visitPage(PageManager.Page p)
visitPage
in interface PartVisitor<PartManager.Part>
public PartManager.Part visitSection(SectionManager.Section p)
visitSection
in interface PartVisitor<PartManager.Part>
public PartManager.Part visitQuestion(QuestionManager.Question p)
visitQuestion
in interface PartVisitor<PartManager.Part>