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;
}
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;
}
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;
}
Aggregations