
org.xmlet.xsdparser.xsdelements.visitors.XsdAnnotatedElementsVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xsdParser Show documentation
Show all versions of xsdParser Show documentation
A solution that parses a XSD file into a Java Structure.
The newest version!
package org.xmlet.xsdparser.xsdelements.visitors;
import org.xmlet.xsdparser.xsdelements.XsdAnnotatedElements;
import org.xmlet.xsdparser.xsdelements.XsdAnnotation;
/**
* Represents the restrictions of all the XSD elements that can have an {@link XsdAnnotation} as children.
*/
public class XsdAnnotatedElementsVisitor implements XsdAbstractElementVisitor {
/**
* The {@link XsdAnnotatedElements} instance which owns this {@link XsdAnnotatedElementsVisitor} instance. This way
* this visitor instance can perform changes in the {@link XsdAnnotatedElements} objects.
*/
private final XsdAnnotatedElements owner;
public XsdAnnotatedElementsVisitor(XsdAnnotatedElements owner){
this.owner = owner;
}
@Override
public void visit(XsdAnnotation element) {
XsdAbstractElementVisitor.super.visit(element);
owner.setAnnotation(element);
}
@Override
public XsdAnnotatedElements getOwner() {
return owner;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy