@@ -0,0 +1,1522 @@
+package org.verapdf.model.visitor.cos.pb;%0A%0Aimport org.apache.pdfbox.cos.*;%0Aimport org.verapdf.model.impl.pb.cos.*;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created by Evgeniy on 5/16/2015.%0A */%0Apublic final class PBCosVisitor implements ICOSVisitor %7B%0A%0A    @Override%0A    public Object visitFromArray(COSArray obj) throws IOException %7B%0A        return new PBCosArray(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromBoolean(COSBoolean obj) throws IOException %7B%0A        return new PBCosBool(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromDictionary(COSDictionary obj) throws IOException %7B%0A        return new PBCosDict(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromDocument(COSDocument obj) throws IOException %7B%0A        return new PBCosDocument(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromFloat(COSFloat obj) throws IOException %7B%0A        return new PBCosReal(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromInt(COSInteger obj) throws IOException %7B%0A        return new PBCosInteger(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromName(COSName obj) throws IOException %7B%0A        return new PBCosName(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromNull(COSNull obj) throws IOException %7B%0A        return PBCosNull.NULL;%0A    %7D%0A%0A    @Override%0A    public Object visitFromStream(COSStream obj) throws IOException %7B%0A        return new PBCosStream(obj);%0A    %7D%0A%0A    @Override%0A    public Object visitFromString(COSString obj) throws IOException %7B%0A        return new PBCosString(obj, false);%0A    %7D%0A%7D

Add support of visitor pattern for creating object