Search in sources :

Example 1 with Contact

use of io.apicurio.datamodels.core.models.common.Contact in project apicurio-data-models by Apicurio.

the class Oas20Info method createContact.

/**
 * @see io.apicurio.datamodels.core.models.common.Info#createContact()
 */
@Override
public Contact createContact() {
    Contact contact = new Oas20Contact();
    contact._ownerDocument = this.ownerDocument();
    contact._parent = this;
    return contact;
}
Also used : Contact(io.apicurio.datamodels.core.models.common.Contact)

Example 2 with Contact

use of io.apicurio.datamodels.core.models.common.Contact in project apicurio-data-models by Apicurio.

the class Oas30Info method createContact.

/**
 * @see io.apicurio.datamodels.core.models.common.Info#createContact()
 */
@Override
public Contact createContact() {
    Contact contact = new Oas30Contact();
    contact._ownerDocument = this.ownerDocument();
    contact._parent = this;
    return contact;
}
Also used : Contact(io.apicurio.datamodels.core.models.common.Contact)

Example 3 with Contact

use of io.apicurio.datamodels.core.models.common.Contact in project apicurio-data-models by Apicurio.

the class DeleteContactCommand method readNode.

/**
 * @see io.apicurio.datamodels.cmd.commands.DeleteNodeCommand#readNode(io.apicurio.datamodels.core.models.Document, java.lang.Object)
 */
@Override
protected Contact readNode(Document doc, Object node) {
    Contact contact = doc.info.createContact();
    Library.readNode(node, contact);
    return contact;
}
Also used : Contact(io.apicurio.datamodels.core.models.common.Contact)

Aggregations

Contact (io.apicurio.datamodels.core.models.common.Contact)3