org.gedcomx.rt
Class GedcomxModelVisitorBase

java.lang.Object
  extended by org.gedcomx.rt.GedcomxModelVisitorBase
All Implemented Interfaces:
GedcomxModelVisitor
Direct Known Subclasses:
GedcomxLocalReferenceResolver

public class GedcomxModelVisitorBase
extends Object
implements GedcomxModelVisitor

Basic, no-op implementation of the GEDCOM X model visitor. Intended to be extended and appropriate methods overridden as needed.

Author:
Ryan Heaton

Field Summary
protected  LinkedList<Object> contextStack
           
 
Constructor Summary
GedcomxModelVisitorBase()
           
 
Method Summary
 LinkedList<Object> getContextStack()
           
 void visitAgent(Agent agent)
           
 void visitCollection(Collection collection)
           
protected  void visitConclusion(Conclusion conclusion)
           
 void visitDate(Date date)
           
 void visitDocument(Document document)
           
 void visitEvent(Event event)
           
 void visitEventRole(EventRole role)
           
 void visitEvidenceReference(EvidenceReference evidenceReference)
           
 void visitFact(Fact fact)
           
 void visitField(Field field)
           
 void visitFieldValue(FieldValue fieldValue)
           
 void visitGedcomx(Gedcomx gx)
           
 void visitGender(Gender gender)
           
 void visitName(Name name)
           
 void visitNameForm(NameForm form)
           
 void visitNamePart(NamePart part)
           
 void visitNote(Note note)
           
 void visitPerson(Person person)
           
 void visitPlaceDescription(PlaceDescription place)
           
 void visitPlaceReference(PlaceReference place)
           
 void visitRecordDescriptor(RecordDescriptor recordDescriptor)
           
 void visitRelationship(Relationship relationship)
           
 void visitSourceCitation(SourceCitation citation)
           
 void visitSourceDescription(SourceDescription sourceDescription)
           
 void visitSourceReference(SourceReference sourceReference)
           
protected  void visitSubject(Subject subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextStack

protected final LinkedList<Object> contextStack
Constructor Detail

GedcomxModelVisitorBase

public GedcomxModelVisitorBase()
Method Detail

visitGedcomx

public void visitGedcomx(Gedcomx gx)
Specified by:
visitGedcomx in interface GedcomxModelVisitor

visitDocument

public void visitDocument(Document document)
Specified by:
visitDocument in interface GedcomxModelVisitor

visitPlaceDescription

public void visitPlaceDescription(PlaceDescription place)
Specified by:
visitPlaceDescription in interface GedcomxModelVisitor

visitEvent

public void visitEvent(Event event)
Specified by:
visitEvent in interface GedcomxModelVisitor

visitEventRole

public void visitEventRole(EventRole role)
Specified by:
visitEventRole in interface GedcomxModelVisitor

visitAgent

public void visitAgent(Agent agent)
Specified by:
visitAgent in interface GedcomxModelVisitor

visitSourceDescription

public void visitSourceDescription(SourceDescription sourceDescription)
Specified by:
visitSourceDescription in interface GedcomxModelVisitor

visitSourceCitation

public void visitSourceCitation(SourceCitation citation)
Specified by:
visitSourceCitation in interface GedcomxModelVisitor

visitCollection

public void visitCollection(Collection collection)
Specified by:
visitCollection in interface GedcomxModelVisitor

visitRecordDescriptor

public void visitRecordDescriptor(RecordDescriptor recordDescriptor)
Specified by:
visitRecordDescriptor in interface GedcomxModelVisitor

visitField

public void visitField(Field field)
Specified by:
visitField in interface GedcomxModelVisitor

visitFieldValue

public void visitFieldValue(FieldValue fieldValue)
Specified by:
visitFieldValue in interface GedcomxModelVisitor

visitRelationship

public void visitRelationship(Relationship relationship)
Specified by:
visitRelationship in interface GedcomxModelVisitor

visitConclusion

protected void visitConclusion(Conclusion conclusion)

visitSubject

protected void visitSubject(Subject subject)

visitPerson

public void visitPerson(Person person)
Specified by:
visitPerson in interface GedcomxModelVisitor

visitFact

public void visitFact(Fact fact)
Specified by:
visitFact in interface GedcomxModelVisitor

visitPlaceReference

public void visitPlaceReference(PlaceReference place)
Specified by:
visitPlaceReference in interface GedcomxModelVisitor

visitDate

public void visitDate(Date date)
Specified by:
visitDate in interface GedcomxModelVisitor

visitName

public void visitName(Name name)
Specified by:
visitName in interface GedcomxModelVisitor

visitNameForm

public void visitNameForm(NameForm form)
Specified by:
visitNameForm in interface GedcomxModelVisitor

visitNamePart

public void visitNamePart(NamePart part)
Specified by:
visitNamePart in interface GedcomxModelVisitor

visitGender

public void visitGender(Gender gender)
Specified by:
visitGender in interface GedcomxModelVisitor

visitSourceReference

public void visitSourceReference(SourceReference sourceReference)
Specified by:
visitSourceReference in interface GedcomxModelVisitor

visitNote

public void visitNote(Note note)
Specified by:
visitNote in interface GedcomxModelVisitor

visitEvidenceReference

public void visitEvidenceReference(EvidenceReference evidenceReference)
Specified by:
visitEvidenceReference in interface GedcomxModelVisitor

getContextStack

public LinkedList<Object> getContextStack()


Copyright © 2015. All rights reserved.