org.purl.dc.terms.impl.AlternativeDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: alternative
* Namespace: http://purl.org/dc/terms/
* Java type: org.purl.dc.terms.AlternativeDocument
*
* Automatically generated - do not modify.
*/
package org.purl.dc.terms.impl;
/**
* A document containing one alternative(@http://purl.org/dc/terms/) element.
*
* This is a complex type.
*/
public class AlternativeDocumentImpl extends org.purl.dc.elements.x11.impl.TitleDocumentImpl implements org.purl.dc.terms.AlternativeDocument
{
public AlternativeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ALTERNATIVE$0 =
new javax.xml.namespace.QName("http://purl.org/dc/terms/", "alternative");
/**
* Gets the "alternative" element
*/
public org.purl.dc.elements.x11.SimpleLiteral getAlternative()
{
synchronized (monitor())
{
check_orphaned();
org.purl.dc.elements.x11.SimpleLiteral target = null;
target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(ALTERNATIVE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "alternative" element
*/
public void setAlternative(org.purl.dc.elements.x11.SimpleLiteral alternative)
{
synchronized (monitor())
{
check_orphaned();
org.purl.dc.elements.x11.SimpleLiteral target = null;
target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(ALTERNATIVE$0, 0);
if (target == null)
{
target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(ALTERNATIVE$0);
}
target.set(alternative);
}
}
/**
* Appends and returns a new empty "alternative" element
*/
public org.purl.dc.elements.x11.SimpleLiteral addNewAlternative()
{
synchronized (monitor())
{
check_orphaned();
org.purl.dc.elements.x11.SimpleLiteral target = null;
target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(ALTERNATIVE$0);
return target;
}
}
}