/* * XML Type: ContextMetadata * Namespace: * Java type: noNamespace.ContextMetadata * * Automatically generated - do not modify. */ package noNamespace.impl; /** * An XML ContextMetadata(@). * * This is a complex type. */ public class ContextMetadataImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements noNamespace.ContextMetadata { private static final long serialVersionUID = 1L; public ContextMetadataImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName NAME$0 = new javax.xml.namespace.QName("", "name"); private static final javax.xml.namespace.QName TYPE$2 = new javax.xml.namespace.QName("", "type"); private static final javax.xml.namespace.QName VALUE$4 = new javax.xml.namespace.QName("", "value"); /** * Gets the "name" element */ public java.lang.String getName() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "name" element */ public org.apache.xmlbeans.XmlString xgetName() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); return target; } } /** * Sets the "name" element */ public void setName(java.lang.String name) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0); } target.setStringValue(name); } } /** * Sets (as xml) the "name" element */ public void xsetName(org.apache.xmlbeans.XmlString name) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlString target = null; target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0); if (target == null) { target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0); } target.set(name); } } /** * Gets the "type" element */ public java.lang.String getType() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$2, 0); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "type" element */ public org.apache.xmlbeans.XmlAnyURI xgetType() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlAnyURI target = null; target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(TYPE$2, 0); return target; } } /** * True if has "type" element */ public boolean isSetType() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(TYPE$2) != 0; } } /** * Sets the "type" element */ public void setType(java.lang.String type) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$2, 0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPE$2); } target.setStringValue(type); } } /** * Sets (as xml) the "type" element */ public void xsetType(org.apache.xmlbeans.XmlAnyURI type) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlAnyURI target = null; target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(TYPE$2, 0); if (target == null) { target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(TYPE$2); } target.set(type); } } /** * Unsets the "type" element */ public void unsetType() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(TYPE$2, 0); } } /** * Gets the "value" element */ public org.apache.xmlbeans.XmlObject getValue() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlObject target = null; target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$4, 0); if (target == null) { return null; } return target; } } /** * Sets the "value" element */ public void setValue(org.apache.xmlbeans.XmlObject value) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlObject target = null; target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$4, 0); if (target == null) { target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$4); } target.set(value); } } /** * Appends and returns a new empty "value" element */ public org.apache.xmlbeans.XmlObject addNewValue() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlObject target = null; target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$4); return target; } } }