📄 contenttypeattributeimpl.java
字号:
/*
* An XML attribute type.
* Localname: contentType
* Namespace: http://www.w3.org/2004/06/xmlmime
* Java type: org.w3.www._2004._06.xmlmime.ContentTypeAttribute
*
* Automatically generated - do not modify.
*/
package org.w3.www._2004._06.xmlmime.impl;
/**
* A document containing one contentType(@http://www.w3.org/2004/06/xmlmime) attribute.
*
* This is a complex type.
*/
public class ContentTypeAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
implements org.w3.www._2004._06.xmlmime.ContentTypeAttribute {
private static final javax.xml.namespace.QName CONTENTTYPE$0 = new javax.xml.namespace.QName("http://www.w3.org/2004/06/xmlmime",
"contentType");
public ContentTypeAttributeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
/**
* Gets the "contentType" attribute
*/
public java.lang.String getContentType() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_attribute_user(CONTENTTYPE$0);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "contentType" attribute
*/
public org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType xgetContentType() {
synchronized (monitor()) {
check_orphaned();
org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType target =
null;
target = (org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType) get_store()
.find_attribute_user(CONTENTTYPE$0);
return target;
}
}
/**
* True if has "contentType" attribute
*/
public boolean isSetContentType() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(CONTENTTYPE$0) != null;
}
}
/**
* Sets the "contentType" attribute
*/
public void setContentType(java.lang.String contentType) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_attribute_user(CONTENTTYPE$0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue) get_store()
.add_attribute_user(CONTENTTYPE$0);
}
target.setStringValue(contentType);
}
}
/**
* Sets (as xml) the "contentType" attribute
*/
public void xsetContentType(
org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType contentType) {
synchronized (monitor()) {
check_orphaned();
org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType target =
null;
target = (org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType) get_store()
.find_attribute_user(CONTENTTYPE$0);
if (target == null) {
target = (org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType) get_store()
.add_attribute_user(CONTENTTYPE$0);
}
target.set(contentType);
}
}
/**
* Unsets the "contentType" attribute
*/
public void unsetContentType() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(CONTENTTYPE$0);
}
}
/**
* An XML contentType(@http://www.w3.org/2004/06/xmlmime).
*
* This is an atomic type that is a restriction of org.w3.www._2004._06.xmlmime.ContentTypeAttribute$ContentType.
*/
public static class ContentTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx
implements org.w3.www._2004._06.xmlmime.ContentTypeAttribute.ContentType {
public ContentTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, false);
}
protected ContentTypeImpl(org.apache.xmlbeans.SchemaType sType,
boolean b) {
super(sType, b);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -