com.oceaninformatics.characterMapping.impl.CharDocumentImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oet-parser Show documentation
Show all versions of oet-parser Show documentation
Java implementation of openEHR OET Template Parser and Flattener
The newest version!
/*
* An XML document type.
* Localname: Char
* Namespace: http://oceaninformatics.com/CharacterMapping.xsd
* Java type: com.oceaninformatics.characterMapping.CharDocument
*
* Automatically generated - do not modify.
*/
package com.oceaninformatics.characterMapping.impl;
/**
* A document containing one Char(@http://oceaninformatics.com/CharacterMapping.xsd) element.
*
* This is a complex type.
*/
public class CharDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.oceaninformatics.characterMapping.CharDocument
{
private static final long serialVersionUID = 1L;
public CharDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CHAR$0 =
new javax.xml.namespace.QName("http://oceaninformatics.com/CharacterMapping.xsd", "Char");
/**
* Gets the "Char" element
*/
public com.oceaninformatics.characterMapping.CharDocument.Char getChar()
{
synchronized (monitor())
{
check_orphaned();
com.oceaninformatics.characterMapping.CharDocument.Char target = null;
target = (com.oceaninformatics.characterMapping.CharDocument.Char)get_store().find_element_user(CHAR$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Char" element
*/
public void setChar(com.oceaninformatics.characterMapping.CharDocument.Char xchar)
{
synchronized (monitor())
{
check_orphaned();
com.oceaninformatics.characterMapping.CharDocument.Char target = null;
target = (com.oceaninformatics.characterMapping.CharDocument.Char)get_store().find_element_user(CHAR$0, 0);
if (target == null)
{
target = (com.oceaninformatics.characterMapping.CharDocument.Char)get_store().add_element_user(CHAR$0);
}
target.set(xchar);
}
}
/**
* Appends and returns a new empty "Char" element
*/
public com.oceaninformatics.characterMapping.CharDocument.Char addNewChar()
{
synchronized (monitor())
{
check_orphaned();
com.oceaninformatics.characterMapping.CharDocument.Char target = null;
target = (com.oceaninformatics.characterMapping.CharDocument.Char)get_store().add_element_user(CHAR$0);
return target;
}
}
/**
* An XML Char(@http://oceaninformatics.com/CharacterMapping.xsd).
*
* This is a complex type.
*/
public static class CharImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.oceaninformatics.characterMapping.CharDocument.Char
{
private static final long serialVersionUID = 1L;
public CharImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ID$0 =
new javax.xml.namespace.QName("", "id");
private static final javax.xml.namespace.QName TEXT$2 =
new javax.xml.namespace.QName("", "Text");
/**
* Gets the "id" attribute
*/
public java.lang.String getId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "id" attribute
*/
public org.apache.xmlbeans.XmlString xgetId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ID$0);
return target;
}
}
/**
* True if has "id" attribute
*/
public boolean isSetId()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ID$0) != null;
}
}
/**
* Sets the "id" attribute
*/
public void setId(java.lang.String id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$0);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "id" attribute
*/
public void xsetId(org.apache.xmlbeans.XmlString id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ID$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ID$0);
}
target.set(id);
}
}
/**
* Unsets the "id" attribute
*/
public void unsetId()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ID$0);
}
}
/**
* Gets the "Text" attribute
*/
public java.lang.String getText()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXT$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Text" attribute
*/
public org.apache.xmlbeans.XmlString xgetText()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEXT$2);
return target;
}
}
/**
* True if has "Text" attribute
*/
public boolean isSetText()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(TEXT$2) != null;
}
}
/**
* Sets the "Text" attribute
*/
public void setText(java.lang.String text)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXT$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TEXT$2);
}
target.setStringValue(text);
}
}
/**
* Sets (as xml) the "Text" attribute
*/
public void xsetText(org.apache.xmlbeans.XmlString text)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEXT$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TEXT$2);
}
target.set(text);
}
}
/**
* Unsets the "Text" attribute
*/
public void unsetText()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(TEXT$2);
}
}
}
}