org.xmlet.xsdparser.xsdelements.XsdAnnotatedElements Maven / Gradle / Ivy
package org.xmlet.xsdparser.xsdelements;
import org.xmlet.xsdparser.core.XsdParserCore;
import org.xmlet.xsdparser.xsdelements.visitors.XsdAbstractElementVisitor;
import javax.validation.constraints.NotNull;
import java.util.Map;
import java.util.function.Function;
/**
* Serves as a base to every {@link XsdAbstractElement} concrete type which can have xsd:annotation as children. Extends
* from {@link XsdIdentifierElements} because every concrete type that can contain xsd:annotation has children can also
* have an {@link XsdIdentifierElements#id} field.
*/
public abstract class XsdAnnotatedElements extends XsdIdentifierElements {
/**
* The {@link XsdAnnotation} that is annotating the concrete instances of this class.
*/
private XsdAnnotation annotation;
protected XsdAnnotatedElements(@NotNull XsdParserCore parser, @NotNull Map elementFieldsMapParam, Function visitorFunction) {
super(parser, elementFieldsMapParam, visitorFunction);
}
public void setAnnotation(XsdAnnotation annotation){
this.annotation = annotation;
}
public XsdAnnotation getAnnotation() {
return annotation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy