package org.verapdf.model.impl.pb.cos;

import org.apache.pdfbox.cos.COSName;
import org.verapdf.model.coslayer.CosName;

/**
 * Current class is representation of CosName interface of abstract model. This
 * class is analogue of COSName in pdfbox.
 *
 * @author Evgeniy Muravitskiy
 */
public class PBCosName extends PBCosObject implements CosName {

    /** Type name for PBCosName */
    public static final String COS_NAME_TYPE = "CosName";

    private final String internalRepresentation;

    /**
     * Default constructor
     * @param cosName pdfbox COSName
     */
    public PBCosName(COSName cosName) {
        this(cosName, COS_NAME_TYPE);
    }

    /**
     * Constructor for child classes
     * @param cosName pdfbox COSName
     * @param type child class type
     */
    public PBCosName(COSName cosName, final String type) {
        super(cosName, type);
        this.internalRepresentation = cosName.getName();
    }

    /**
     * Get Unicode string representation of the Name object after applying
     * escape mechanism and converting to Unicode using Utf8 encoding
     */
    @Override
    public String getinternalRepresentation() {
        return this.internalRepresentation;
    }

	@Override
	public Long getorigLength() {
		return null;
	}

}

@@ -1211,19 +1211,8 @@
  %7D%0A%0A
-%09@Override%0A
 %09pub

Fix in cos name