
org.nbnResolving.pidef.impl.PidefDocumentImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pidef Show documentation
Show all versions of pidef Show documentation
Java classes (generated with XML-Beans) for Persistent Identifier Data Exchange Format (pidef) processing.
See the official URN:NBN Resolver http://nbn-resolving.org or http://persid.org
The newest version!
/*
* An XML document type.
* Localname: pidef
* Namespace: http://nbn-resolving.org/pidef
* Java type: org.nbnResolving.pidef.PidefDocument
*
* Automatically generated - do not modify.
*/
package org.nbnResolving.pidef.impl;
/**
* A document containing one pidef(@http://nbn-resolving.org/pidef) element.
*
* This is a complex type.
*/
public class PidefDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.nbnResolving.pidef.PidefDocument
{
private static final long serialVersionUID = 1L;
public PidefDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PIDEF$0 =
new javax.xml.namespace.QName("http://nbn-resolving.org/pidef", "pidef");
/**
* Gets the "pidef" element
*/
public org.nbnResolving.pidef.PidefDocument.Pidef getPidef()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.PidefDocument.Pidef target = null;
target = (org.nbnResolving.pidef.PidefDocument.Pidef)get_store().find_element_user(PIDEF$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "pidef" element
*/
public void setPidef(org.nbnResolving.pidef.PidefDocument.Pidef pidef)
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.PidefDocument.Pidef target = null;
target = (org.nbnResolving.pidef.PidefDocument.Pidef)get_store().find_element_user(PIDEF$0, 0);
if (target == null)
{
target = (org.nbnResolving.pidef.PidefDocument.Pidef)get_store().add_element_user(PIDEF$0);
}
target.set(pidef);
}
}
/**
* Appends and returns a new empty "pidef" element
*/
public org.nbnResolving.pidef.PidefDocument.Pidef addNewPidef()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.PidefDocument.Pidef target = null;
target = (org.nbnResolving.pidef.PidefDocument.Pidef)get_store().add_element_user(PIDEF$0);
return target;
}
}
/**
* An XML pidef(@http://nbn-resolving.org/pidef).
*
* This is a complex type.
*/
public static class PidefImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.nbnResolving.pidef.PidefDocument.Pidef
{
private static final long serialVersionUID = 1L;
public PidefImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName HEADER$0 =
new javax.xml.namespace.QName("http://nbn-resolving.org/pidef", "header");
private static final javax.xml.namespace.QName DATA$2 =
new javax.xml.namespace.QName("http://nbn-resolving.org/pidef", "data");
/**
* Gets the "header" element
*/
public org.nbnResolving.pidef.HeaderType getHeader()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.HeaderType target = null;
target = (org.nbnResolving.pidef.HeaderType)get_store().find_element_user(HEADER$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "header" element
*/
public void setHeader(org.nbnResolving.pidef.HeaderType header)
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.HeaderType target = null;
target = (org.nbnResolving.pidef.HeaderType)get_store().find_element_user(HEADER$0, 0);
if (target == null)
{
target = (org.nbnResolving.pidef.HeaderType)get_store().add_element_user(HEADER$0);
}
target.set(header);
}
}
/**
* Appends and returns a new empty "header" element
*/
public org.nbnResolving.pidef.HeaderType addNewHeader()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.HeaderType target = null;
target = (org.nbnResolving.pidef.HeaderType)get_store().add_element_user(HEADER$0);
return target;
}
}
/**
* Gets the "data" element
*/
public org.nbnResolving.pidef.DataType getData()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.DataType target = null;
target = (org.nbnResolving.pidef.DataType)get_store().find_element_user(DATA$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "data" element
*/
public boolean isSetData()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATA$2) != 0;
}
}
/**
* Sets the "data" element
*/
public void setData(org.nbnResolving.pidef.DataType data)
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.DataType target = null;
target = (org.nbnResolving.pidef.DataType)get_store().find_element_user(DATA$2, 0);
if (target == null)
{
target = (org.nbnResolving.pidef.DataType)get_store().add_element_user(DATA$2);
}
target.set(data);
}
}
/**
* Appends and returns a new empty "data" element
*/
public org.nbnResolving.pidef.DataType addNewData()
{
synchronized (monitor())
{
check_orphaned();
org.nbnResolving.pidef.DataType target = null;
target = (org.nbnResolving.pidef.DataType)get_store().add_element_user(DATA$2);
return target;
}
}
/**
* Unsets the "data" element
*/
public void unsetData()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATA$2, 0);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy