All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.datamodels.asyncapi.models.AaiOAuthFlows Maven / Gradle / Ivy

There is a newer version: 3.5.0.Final
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy