eu.toop.edm.jaxb.w3.odrl.ObjectFactory Maven / Gradle / Ivy
package eu.toop.edm.jaxb.w3.odrl;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.helger.commons.annotation.CodingStyleguideUnaware;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the eu.toop.edm.jaxb.w3.odrl 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.
This class was annotated by ph-jaxb22-plugin -Xph-annotate
*
*
*/
@XmlRegistry
@CodingStyleguideUnaware
public class ObjectFactory {
public final static QName _HasPolicy_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "hasPolicy");
public final static QName _Policy_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "Policy");
public final static QName _Permission_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "permission");
public final static QName _Prohibition_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "prohibition");
public final static QName _Duty_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "duty");
public final static QName _Asset_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "asset");
public final static QName _Party_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "party");
public final static QName _Action_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "action");
public final static QName _Constraint_QNAME = new QName("http://www.w3.org/ns/odrl/2/", "constraint");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: eu.toop.edm.jaxb.w3.odrl
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Policy }
*
* @return
* The created Policy object and never null
.
*/
@Nonnull
public Policy createPolicy() {
return new Policy();
}
/**
* Create an instance of {@link Permission }
*
* @return
* The created Permission object and never null
.
*/
@Nonnull
public Permission createPermission() {
return new Permission();
}
/**
* Create an instance of {@link Prohibition }
*
* @return
* The created Prohibition object and never null
.
*/
@Nonnull
public Prohibition createProhibition() {
return new Prohibition();
}
/**
* Create an instance of {@link Duty }
*
* @return
* The created Duty object and never null
.
*/
@Nonnull
public Duty createDuty() {
return new Duty();
}
/**
* Create an instance of {@link Asset }
*
* @return
* The created Asset object and never null
.
*/
@Nonnull
public Asset createAsset() {
return new Asset();
}
/**
* Create an instance of {@link Party }
*
* @return
* The created Party object and never null
.
*/
@Nonnull
public Party createParty() {
return new Party();
}
/**
* Create an instance of {@link Action }
*
* @return
* The created Action object and never null
.
*/
@Nonnull
public Action createAction() {
return new Action();
}
/**
* Create an instance of {@link Constraint }
*
* @return
* The created Constraint object and never null
.
*/
@Nonnull
public Constraint createConstraint() {
return new Constraint();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Policy }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Policy }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "hasPolicy")
@Nonnull
public JAXBElement createHasPolicy(
@Nullable
final Policy value) {
return new JAXBElement(_HasPolicy_QNAME, Policy.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Policy }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Policy }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "Policy")
@Nonnull
public JAXBElement createPolicy(
@Nullable
final Policy value) {
return new JAXBElement(_Policy_QNAME, Policy.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Permission }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Permission }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "permission")
@Nonnull
public JAXBElement createPermission(
@Nullable
final Permission value) {
return new JAXBElement(_Permission_QNAME, Permission.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Prohibition }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Prohibition }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "prohibition")
@Nonnull
public JAXBElement createProhibition(
@Nullable
final Prohibition value) {
return new JAXBElement(_Prohibition_QNAME, Prohibition.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Duty }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Duty }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "duty")
@Nonnull
public JAXBElement createDuty(
@Nullable
final Duty value) {
return new JAXBElement(_Duty_QNAME, Duty.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Asset }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Asset }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "asset")
@Nonnull
public JAXBElement createAsset(
@Nullable
final Asset value) {
return new JAXBElement(_Asset_QNAME, Asset.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Party }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Party }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "party")
@Nonnull
public JAXBElement createParty(
@Nullable
final Party value) {
return new JAXBElement(_Party_QNAME, Party.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Action }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Action }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "action")
@Nonnull
public JAXBElement createAction(
@Nullable
final Action value) {
return new JAXBElement(_Action_QNAME, Action.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Constraint }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link Constraint }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.w3.org/ns/odrl/2/", name = "constraint")
@Nonnull
public JAXBElement createConstraint(
@Nullable
final Constraint value) {
return new JAXBElement(_Constraint_QNAME, Constraint.class, null, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy