@ Override public void visit ( final Attribute attribute ) { final String string = attribute . getString ( ) ; if ( "File" . equals ( string ) ) { filePath = attribute . getTail ( ) ; for ( final GedObject subObject : attribute . getAttributes ( ) ) { subObject . accept ( this ) ; } } if ( "Format" . equals ( string ) ) { format = attribute . getTail ( ) ; } if ( "Title" . equals ( string ) ) { title = attribute . getTail ( ) ; } }
Visit an Attribute . The values of specific attributes are gathered for later use .