io.apicurio.datamodels.asyncapi.models.AaiOAuthFlows Maven / Gradle / Ivy
package io.apicurio.datamodels.asyncapi.models;
import io.apicurio.datamodels.asyncapi.visitors.IAaiVisitor;
import io.apicurio.datamodels.core.models.Node;
import io.apicurio.datamodels.core.models.common.OAuthFlows;
import io.apicurio.datamodels.core.visitors.IVisitor;
/**
* @author Jakub Senko
*/
public abstract class AaiOAuthFlows extends OAuthFlows {
/**
* Constructor.
*/
public AaiOAuthFlows() {
}
/**
* Constructor.
* @param parent
*/
public AaiOAuthFlows(Node parent) {
if(parent != null) {
this._parent = parent;
this._ownerDocument = parent.ownerDocument();
}
}
/**
* @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
*/
@Override
public void accept(IVisitor visitor) {
IAaiVisitor v = (IAaiVisitor) visitor;
v.visitOAuthFlows(this);
}
}