RNGSchemaAnnotation.java 994 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmp.schema.rng.parser.annotation;

import com.adobe.xmp.schema.rng.model.Context;
import com.adobe.xmp.schema.rng.model.PropertyInfo;
import com.adobe.xmp.schema.rng.model.SchemaInfo;
import com.adobe.xmp.schema.rng.parser.annotation.RNGAnnotation;
import org.w3c.dom.Element;

public class RNGSchemaAnnotation
extends RNGAnnotation {
    private String label;
    private String description;

    RNGSchemaAnnotation(Element element) {
        this.label = element.getAttribute("label");
        this.description = element.getAttribute("description");
    }

    public void setAnnotationData(Context context, PropertyInfo propInfo) {
        context.getCurrentSchemaInfo().setLabel(this.label);
        context.getCurrentSchemaInfo().setDescription(this.description);
    }

    public void setAnnotationData(SchemaInfo schemaInfo) {
        schemaInfo.setLabel(this.label);
        schemaInfo.setDescription(this.description);
    }
}