本文整理了Java中org.apache.xmlbeans.XmlAnySimpleType
类的一些代码示例,展示了XmlAnySimpleType
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlAnySimpleType
类的具体详情如下:
包路径:org.apache.xmlbeans.XmlAnySimpleType
类名称:XmlAnySimpleType
[英]Corresponds to the XML Schema xs:anySimpleType type.
All simple types are convertible to String.
[中]对应于XML模式xs:anySimpleType类型。
所有简单类型都可以转换为字符串。
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
if (fixedFacets[code] && !myFacets[code].valueEquals(len))
baseMinLength.valueEquals(myFacets[SchemaType.FACET_MIN_LENGTH]) &&
baseMinLength.compareValue(len) <= 0))
baseMaxLength.valueEquals(myFacets[SchemaType.FACET_MAX_LENGTH]) &&
baseMaxLength.compareValue(len) >= 0))
if (fixedFacets[code] && !myFacets[code].valueEquals(mlen))
baseMinMaxLength.valueEquals(mlen) &&
(code == SchemaType.FACET_MIN_LENGTH ?
baseMinMaxLength.compareTo(myFacets[SchemaType.FACET_LENGTH]) <= 0 :
baseMinMaxLength.compareTo(myFacets[SchemaType.FACET_LENGTH]) >= 0)))
if (fixedFacets[code] && !myFacets[code].valueEquals(dig))
if (fixedFacets[code] && !myFacets[code].valueEquals(fdig))
if (fixedFacets[code] && !myFacets[code].valueEquals(limit))
SchemaType limitSType = limit.schemaType();
if ( limitSType!=null && !limitSType.isSimpleType() &&
limitSType.getContentType()==SchemaType.SIMPLE_CONTENT)
int comparison = limit.compareValue(myFacets[code]);
if (comparison == 2 || comparison == (ismin ? -1 : 1))
state.error(XmlErrorCodes.DATATYPE_ENUM_RESTRICTION, new Object[] { facet.getValue().getStringValue(), e.getMessage() }, facet);
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
void writeXmlValueObject(XmlAnySimpleType value)
SchemaType type = value == null ? null : value.schemaType();
writeType(type);
if (type == null)
case SchemaType.BTC_DECIMAL:
case SchemaType.BTC_BOOLEAN:
writeString(value.getStringValue());
break;
代码示例来源:origin: org.n52.sensorweb/52n-xml-gml-v321
/**
* Sets the "NumberSuffixSeparator" attribute
*/
public void setNumberSuffixSeparator(org.apache.xmlbeans.XmlAnySimpleType numberSuffixSeparator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnySimpleType target = null;
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(NUMBERSUFFIXSEPARATOR$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(NUMBERSUFFIXSEPARATOR$0);
}
target.set(numberSuffixSeparator);
}
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected boolean equal_to(XmlObject obj)
{
// compares against another anySimpleType
// rule is: lexical values must match.
return _textvalue.equals(((XmlAnySimpleType)obj).getStringValue());
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
String uri = v.getStringValue();
set_prepare();
set_text(uri);
String s = v.getStringValue();
set_prepare();
set_notation(s);
String s = v.getStringValue();
set_prepare();
set_String(s);
if (!v.isImmutable())
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
_textvalue = _value.stringValue();
return;
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
if (!val.validate())
throw new Exception();
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected boolean equal_to(XmlObject xmlobj)
{
return _value.valueEquals(xmlobj);
}
代码示例来源:origin: org.n52.sensorweb/52n-xml-gml-v321
/**
* Sets the "Code" attribute
*/
public void setCode(org.apache.xmlbeans.XmlAnySimpleType code)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnySimpleType target = null;
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(CODE$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(CODE$4);
}
target.set(code);
}
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
public String getStringValue()
{ check_dated(); return _value == null ? null : _value.getStringValue(); }
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
void writeXmlValueObject(XmlAnySimpleType value)
SchemaType type = value == null ? null : value.schemaType();
writeType(type);
if (type == null)
case SchemaType.BTC_DECIMAL:
case SchemaType.BTC_BOOLEAN:
writeString(value.getStringValue());
break;
代码示例来源:origin: com.github.pjfanning/xmlbeans
String uri = v.getStringValue();
set_prepare();
set_text(uri);
String s = v.getStringValue();
set_prepare();
set_notation(s);
String s = v.getStringValue();
set_prepare();
set_String(s);
if (!v.isImmutable())
代码示例来源:origin: org.apache.airavata/airavata-workflow-tracking
public static Map<QName, String> getSimpleAnnotations(XmlObject message) throws XmlException {
Map<QName, XmlObject> simpleXmlElements = getAllAnnotations(message);
Map<QName, String> simpleElements = new HashMap<QName, String>(simpleXmlElements.size());
for (Map.Entry<QName, XmlObject> obj : simpleXmlElements.entrySet()) {
simpleElements.put(obj.getKey(), (XmlAnySimpleType.Factory.parse(obj.getValue().xmlText())).stringValue());
}
return simpleElements;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
XmlOptions opt = new XmlOptions();
opt.put(XmlOptions.VALIDATE_TEXT_ONLY);
if (!val.validate(opt))
throw new Exception();
代码示例来源:origin: com.github.pjfanning/xmlbeans
protected boolean equal_to(XmlObject xmlobj)
{
return _value.valueEquals(xmlobj);
}
代码示例来源:origin: org.n52.sensorweb/52n-xml-gml-v321
/**
* Sets the "Indicator" attribute
*/
public void setIndicator(org.apache.xmlbeans.XmlAnySimpleType indicator)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnySimpleType target = null;
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(INDICATOR$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(INDICATOR$2);
}
target.set(indicator);
}
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
if (fixedFacets[code] && !myFacets[code].valueEquals(len))
baseMinLength.valueEquals(myFacets[SchemaType.FACET_MIN_LENGTH]) &&
baseMinLength.compareValue(len) <= 0))
baseMaxLength.valueEquals(myFacets[SchemaType.FACET_MAX_LENGTH]) &&
baseMaxLength.compareValue(len) >= 0))
if (fixedFacets[code] && !myFacets[code].valueEquals(mlen))
baseMinMaxLength.valueEquals(mlen) &&
(code == SchemaType.FACET_MIN_LENGTH ?
baseMinMaxLength.compareTo(myFacets[SchemaType.FACET_LENGTH]) <= 0 :
baseMinMaxLength.compareTo(myFacets[SchemaType.FACET_LENGTH]) >= 0)))
if (fixedFacets[code] && !myFacets[code].valueEquals(dig))
if (fixedFacets[code] && !myFacets[code].valueEquals(fdig))
if (fixedFacets[code] && !myFacets[code].valueEquals(limit))
int comparison = limit.compareValue(myFacets[code]);
if (comparison == 2 || comparison == (ismin ? -1 : 1))
state.error(XmlErrorCodes.DATATYPE_ENUM_RESTRICTION, new Object[] { facet.getValue().getStringValue(), e.getMessage() }, facet);
continue;
try { p = new RegularExpression(facet.getValue().getStringValue(), "X"); }
catch (ParseException e)
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType v)
{ set_String(v.getStringValue()); }
代码示例来源:origin: com.github.pjfanning/xmlbeans
void writeXmlValueObject(XmlAnySimpleType value)
SchemaType type = value == null ? null : value.schemaType();
writeType(type);
if (type == null)
case SchemaType.BTC_DECIMAL:
case SchemaType.BTC_BOOLEAN:
writeString(value.getStringValue());
break;
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
String uri = v.getStringValue();
set_prepare();
set_text(uri);
String s = v.getStringValue();
set_prepare();
set_notation(s);
String s = v.getStringValue();
set_prepare();
set_String(s);
if (!v.isImmutable())
内容来源于网络,如有侵权,请联系作者删除!