正在查看: Releam v2.13.2 应用的 RevocationValuesTypeImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Releam v2.13.2 应用的 RevocationValuesTypeImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package org.etsi.uri.x01903.v13.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.SchemaType;
import org.apache.xmlbeans.SimpleValue;
import org.apache.xmlbeans.XmlID;
import org.apache.xmlbeans.impl.values.TypeStore;
import org.apache.xmlbeans.impl.values.XmlComplexContentImpl;
import org.etsi.uri.x01903.v13.CRLValuesType;
import org.etsi.uri.x01903.v13.OCSPValuesType;
import org.etsi.uri.x01903.v13.OtherCertStatusValuesType;
import org.etsi.uri.x01903.v13.RevocationValuesType;
public class RevocationValuesTypeImpl extends XmlComplexContentImpl implements RevocationValuesType {
private static final QName CRLVALUES$0 = new QName("http://uri.etsi.org/01903/v1.3.2#", "CRLValues");
private static final QName OCSPVALUES$2 = new QName("http://uri.etsi.org/01903/v1.3.2#", "OCSPValues");
private static final QName OTHERVALUES$4 = new QName("http://uri.etsi.org/01903/v1.3.2#", "OtherValues");
private static final QName ID$6 = new QName("", "Id");
public RevocationValuesTypeImpl(SchemaType schemaType) {
super(schemaType);
}
@Override
public CRLValuesType addNewCRLValues() {
CRLValuesType cRLValuesType;
synchronized (monitor()) {
check_orphaned();
cRLValuesType = (CRLValuesType) get_store().add_element_user(CRLVALUES$0);
}
return cRLValuesType;
}
@Override
public OCSPValuesType addNewOCSPValues() {
OCSPValuesType oCSPValuesType;
synchronized (monitor()) {
check_orphaned();
oCSPValuesType = (OCSPValuesType) get_store().add_element_user(OCSPVALUES$2);
}
return oCSPValuesType;
}
@Override
public OtherCertStatusValuesType addNewOtherValues() {
OtherCertStatusValuesType add_element_user;
synchronized (monitor()) {
check_orphaned();
add_element_user = get_store().add_element_user(OTHERVALUES$4);
}
return add_element_user;
}
@Override
public CRLValuesType getCRLValues() {
synchronized (monitor()) {
check_orphaned();
CRLValuesType cRLValuesType = (CRLValuesType) get_store().find_element_user(CRLVALUES$0, 0);
if (cRLValuesType == null) {
return null;
}
return cRLValuesType;
}
}
@Override
public String getId() {
synchronized (monitor()) {
check_orphaned();
SimpleValue simpleValue = (SimpleValue) get_store().find_attribute_user(ID$6);
if (simpleValue == null) {
return null;
}
return simpleValue.getStringValue();
}
}
@Override
public OCSPValuesType getOCSPValues() {
synchronized (monitor()) {
check_orphaned();
OCSPValuesType oCSPValuesType = (OCSPValuesType) get_store().find_element_user(OCSPVALUES$2, 0);
if (oCSPValuesType == null) {
return null;
}
return oCSPValuesType;
}
}
@Override
public OtherCertStatusValuesType getOtherValues() {
synchronized (monitor()) {
check_orphaned();
OtherCertStatusValuesType find_element_user = get_store().find_element_user(OTHERVALUES$4, 0);
if (find_element_user == null) {
return null;
}
return find_element_user;
}
}
@Override
public boolean isSetCRLValues() {
boolean z;
synchronized (monitor()) {
check_orphaned();
z = get_store().count_elements(CRLVALUES$0) != 0;
}
return z;
}
@Override
public boolean isSetId() {
boolean z;
synchronized (monitor()) {
check_orphaned();
z = get_store().find_attribute_user(ID$6) != null;
}
return z;
}
@Override
public boolean isSetOCSPValues() {
boolean z;
synchronized (monitor()) {
check_orphaned();
z = get_store().count_elements(OCSPVALUES$2) != 0;
}
return z;
}
@Override
public boolean isSetOtherValues() {
boolean z;
synchronized (monitor()) {
check_orphaned();
z = get_store().count_elements(OTHERVALUES$4) != 0;
}
return z;
}
@Override
public void setCRLValues(CRLValuesType cRLValuesType) {
synchronized (monitor()) {
check_orphaned();
TypeStore typeStore = get_store();
QName qName = CRLVALUES$0;
CRLValuesType cRLValuesType2 = (CRLValuesType) typeStore.find_element_user(qName, 0);
if (cRLValuesType2 == null) {
cRLValuesType2 = (CRLValuesType) get_store().add_element_user(qName);
}
cRLValuesType2.set(cRLValuesType);
}
}
@Override
public void setId(String str) {
synchronized (monitor()) {
check_orphaned();
TypeStore typeStore = get_store();
QName qName = ID$6;
SimpleValue simpleValue = (SimpleValue) typeStore.find_attribute_user(qName);
if (simpleValue == null) {
simpleValue = (SimpleValue) get_store().add_attribute_user(qName);
}
simpleValue.setStringValue(str);
}
}
@Override
public void setOCSPValues(OCSPValuesType oCSPValuesType) {
synchronized (monitor()) {
check_orphaned();
TypeStore typeStore = get_store();
QName qName = OCSPVALUES$2;
OCSPValuesType oCSPValuesType2 = (OCSPValuesType) typeStore.find_element_user(qName, 0);
if (oCSPValuesType2 == null) {
oCSPValuesType2 = (OCSPValuesType) get_store().add_element_user(qName);
}
oCSPValuesType2.set(oCSPValuesType);
}
}
@Override
public void setOtherValues(OtherCertStatusValuesType otherCertStatusValuesType) {
synchronized (monitor()) {
check_orphaned();
TypeStore typeStore = get_store();
QName qName = OTHERVALUES$4;
OtherCertStatusValuesType find_element_user = typeStore.find_element_user(qName, 0);
if (find_element_user == null) {
find_element_user = (OtherCertStatusValuesType) get_store().add_element_user(qName);
}
find_element_user.set(otherCertStatusValuesType);
}
}
@Override
public void unsetCRLValues() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(CRLVALUES$0, 0);
}
}
@Override
public void unsetId() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(ID$6);
}
}
@Override
public void unsetOCSPValues() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(OCSPVALUES$2, 0);
}
}
@Override
public void unsetOtherValues() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(OTHERVALUES$4, 0);
}
}
@Override
public XmlID xgetId() {
XmlID xmlID;
synchronized (monitor()) {
check_orphaned();
xmlID = (XmlID) get_store().find_attribute_user(ID$6);
}
return xmlID;
}
@Override
public void xsetId(XmlID xmlID) {
synchronized (monitor()) {
check_orphaned();
TypeStore typeStore = get_store();
QName qName = ID$6;
XmlID xmlID2 = (XmlID) typeStore.find_attribute_user(qName);
if (xmlID2 == null) {
xmlID2 = (XmlID) get_store().add_attribute_user(qName);
}
xmlID2.set(xmlID);
}
}
}