org.mitre.cybox.objects.dns.ObjectFactory Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.01 at 11:48:17 AM PST
//
package org.mitre.cybox.objects.dns;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.mitre.cybox.objects.dns package.
* An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _DNSCache_QNAME = new QName("http://cybox.mitre.org/objects#DNSCacheObject-2", "DNS_Cache");
private final static QName _DNSRecord_QNAME = new QName("http://cybox.mitre.org/objects#DNSRecordObject-2", "DNS_Record");
private final static QName _DNSQuery_QNAME = new QName("http://cybox.mitre.org/objects#DNSQueryObject-2", "DNS_Query");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.mitre.cybox.objects.dns
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DNSCacheObjectType }
*
*/
public DNSCacheObjectType createDNSCacheObjectType() {
return new DNSCacheObjectType();
}
/**
* Create an instance of {@link DNSCacheEntryType }
*
*/
public DNSCacheEntryType createDNSCacheEntryType() {
return new DNSCacheEntryType();
}
/**
* Create an instance of {@link DNSRecordObjectType }
*
*/
public DNSRecordObjectType createDNSRecordObjectType() {
return new DNSRecordObjectType();
}
/**
* Create an instance of {@link DNSQueryObjectType }
*
*/
public DNSQueryObjectType createDNSQueryObjectType() {
return new DNSQueryObjectType();
}
/**
* Create an instance of {@link DNSQuestionType }
*
*/
public DNSQuestionType createDNSQuestionType() {
return new DNSQuestionType();
}
/**
* Create an instance of {@link DNSResourceRecordsType }
*
*/
public DNSResourceRecordsType createDNSResourceRecordsType() {
return new DNSResourceRecordsType();
}
/**
* Create an instance of {@link DNSRecordType }
*
*/
public DNSRecordType createDNSRecordType() {
return new DNSRecordType();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DNSCacheObjectType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://cybox.mitre.org/objects#DNSCacheObject-2", name = "DNS_Cache")
public JAXBElement createDNSCache(DNSCacheObjectType value) {
return new JAXBElement(_DNSCache_QNAME, DNSCacheObjectType.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DNSRecordObjectType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://cybox.mitre.org/objects#DNSRecordObject-2", name = "DNS_Record")
public JAXBElement createDNSRecord(DNSRecordObjectType value) {
return new JAXBElement(_DNSRecord_QNAME, DNSRecordObjectType.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DNSQueryObjectType }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://cybox.mitre.org/objects#DNSQueryObject-2", name = "DNS_Query")
public JAXBElement createDNSQuery(DNSQueryObjectType value) {
return new JAXBElement(_DNSQuery_QNAME, DNSQueryObjectType.class, null, value);
}
}