org.etsi.uri.x01903.v13.impl.EncapsulatedPKIDataTypeImpl Maven / Gradle / Ivy
/*
* XML Type: EncapsulatedPKIDataType
* Namespace: http://uri.etsi.org/01903/v1.3.2#
* Java type: org.etsi.uri.x01903.v13.EncapsulatedPKIDataType
*
* Automatically generated - do not modify.
*/
package org.etsi.uri.x01903.v13.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML EncapsulatedPKIDataType(@http://uri.etsi.org/01903/v1.3.2#).
*
* This is an atomic type that is a restriction of org.etsi.uri.x01903.v13.EncapsulatedPKIDataType.
*/
public class EncapsulatedPKIDataTypeImpl extends org.apache.xmlbeans.impl.values.JavaBase64HolderEx implements org.etsi.uri.x01903.v13.EncapsulatedPKIDataType {
private static final long serialVersionUID = 1L;
public EncapsulatedPKIDataTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, true);
}
protected EncapsulatedPKIDataTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
super(sType, b);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "Id"),
new QName("", "Encoding"),
};
/**
* Gets the "Id" attribute
*/
@Override
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(PROPERTY_QNAME[0]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "Id" attribute
*/
@Override
public org.apache.xmlbeans.XmlID xgetId() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "Id" attribute
*/
@Override
public boolean isSetId() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "Id" attribute
*/
@Override
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(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "Id" attribute
*/
@Override
public void xsetId(org.apache.xmlbeans.XmlID id) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(id);
}
}
/**
* Unsets the "Id" attribute
*/
@Override
public void unsetId() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* Gets the "Encoding" attribute
*/
@Override
public java.lang.String getEncoding() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "Encoding" attribute
*/
@Override
public org.apache.xmlbeans.XmlAnyURI xgetEncoding() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* True if has "Encoding" attribute
*/
@Override
public boolean isSetEncoding() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[1]) != null;
}
}
/**
* Sets the "Encoding" attribute
*/
@Override
public void setEncoding(java.lang.String encoding) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.setStringValue(encoding);
}
}
/**
* Sets (as xml) the "Encoding" attribute
*/
@Override
public void xsetEncoding(org.apache.xmlbeans.XmlAnyURI encoding) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(encoding);
}
}
/**
* Unsets the "Encoding" attribute
*/
@Override
public void unsetEncoding() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[1]);
}
}
}