package org.verapdf.model.impl.pb.xmp.schemas;

import org.apache.xmpbox.schema.XMPMediaManagementSchema;
import org.verapdf.model.xmplayer.XMPMMSchema;

/**
 * Current class is representation of XMPMMSchema interface from abstract model based on xmpbox from pdfbox.
 *
 * @author Maksim Bezrukov
 */
public class PBXMPMMSchema extends PBXMPPredefinedSchema implements XMPMMSchema {

    private static final String XMPMMSCHEMA = "XMPMMSchema";

    private static final String MANIFEST = "Manifest";

    /**
     * Constructs new object
     *
     * @param xmpSchema - object from xmpbox represented this schema
     */
    public PBXMPMMSchema(XMPMediaManagementSchema xmpSchema) {
        super(xmpSchema);
        setType(XMPMMSCHEMA);
    }

    /**
     * @return property InstanceID of the schema
     */
    @Override
    public String getinstanceID() {
        return ((XMPMediaManagementSchema) xmpSchema).getInstanceID();
    }

    /**
     * @return property Manifest of the schema
     */
    @Override
    public String getmanifest() {
        return xmpSchema.getProperty(MANIFEST) == null ? null : xmpSchema.getProperty(MANIFEST).toString();
    }
}

@@ -746,201 +746,8 @@
  %7D%0A%0A
-    /**%0A     * @return property InstanceID of the schema%0A     */%0A    @Override%0A    public String getinstanceID() %7B%0A        return ((XMPMediaManagementSchema) xmpSchema).getInstanceID();%0A    %7D%0A%0A
     

update to correspond new version of model