本文整理了Java中org.apache.xmlbeans.XmlAnySimpleType.getStringValue()
方法的一些代码示例,展示了XmlAnySimpleType.getStringValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlAnySimpleType.getStringValue()
方法的具体详情如下:
包路径:org.apache.xmlbeans.XmlAnySimpleType
类名称:XmlAnySimpleType
方法名:getStringValue
[英]Returns the value as a String
[中]以字符串形式返回值
代码示例来源: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
protected void set_xmlanysimple(XmlAnySimpleType v)
{ set_String(v.getStringValue()); }
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
public String getStringValue()
{ check_dated(); return _value == null ? null : _value.getStringValue(); }
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
static int translateWhitespaceCode(XmlAnySimpleType value)
{
// BUGBUG: add whitespace rule to textvalue.
String textval = value.getStringValue();
if (textval.equals("collapse"))
return SchemaType.WS_COLLAPSE;
if (textval.equals("preserve"))
return SchemaType.WS_PRESERVE;
if (textval.equals("replace"))
return SchemaType.WS_REPLACE;
// KHK: s4s
StscState.get().error("Unrecognized whitespace value \"" + textval + "\"", XmlErrorCodes.FACET_VALUE_MALFORMED, value);
return SchemaType.WS_UNSPECIFIED;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
_value = parse(value.getStringValue(), NamespaceContext.getCurrent());
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
static BigInteger buildBigInt(XmlAnySimpleType value)
{
if (value == null)
return null;
String text = value.getStringValue();
BigInteger bigInt;
try
{
bigInt = new BigInteger(text);
}
catch (NumberFormatException e)
{
StscState.get().error(XmlErrorCodes.INVALID_VALUE_DETAIL, new Object[] { text, "nonNegativeInteger", e.getMessage() }, value);
return null;
}
if (bigInt.signum() < 0)
{
StscState.get().error(XmlErrorCodes.INVALID_VALUE, new Object[] { text, "nonNegativeInteger" }, value);
return null;
}
return bigInt;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
QName v;
if (_validateOnSet())
{
v = validateLexical(value.getStringValue(), _schemaType, _voorVc, NamespaceContext.getCurrent());
if (v != null)
validateValue(v, _schemaType, _voorVc);
}
else
v = JavaNotationHolder.validateLexical(value.getStringValue(), _voorVc, NamespaceContext.getCurrent());
super.set_QName(v);
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
QName v;
if (_validateOnSet())
{
v = validateLexical(value.getStringValue(), _schemaType, _voorVc, NamespaceContext.getCurrent());
if (v != null)
validateValue(v, _schemaType, _voorVc);
}
else
v = JavaQNameHolder.validateLexical(value.getStringValue(), _voorVc, NamespaceContext.getCurrent());
super.set_QName(v);
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
if (v.equals(vals[i].getStringValue()))
return;
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
for (int i = 0; i < enumVals.length; i++)
String val = enumVals[i].getStringValue();
String val = enumVals[i].getStringValue();
entryArray[i] = basedOn.enumEntryForString(val);
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
protected boolean equal_to(XmlObject obj)
{
// compares against another anySimpleType
// rule is: lexical values must match.
return _textvalue.equals(((XmlAnySimpleType)obj).getStringValue());
}
代码示例来源:origin: com.github.pjfanning/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
case SchemaType.BTC_DECIMAL:
case SchemaType.BTC_BOOLEAN:
writeString(value.getStringValue());
break;
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
if (enumValues != null && enumValues.length > 0)
return enumValues[pick(enumValues.length)].getStringValue();
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
_value = parse(value.getStringValue(), NamespaceContext.getCurrent());
}
代码示例来源: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);
代码示例来源:origin: com.github.pjfanning/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
QName v;
if (_validateOnSet())
{
v = validateLexical(value.getStringValue(), _schemaType, _voorVc, NamespaceContext.getCurrent());
if (v != null)
validateValue(v, _schemaType, _voorVc);
}
else
v = JavaQNameHolder.validateLexical(value.getStringValue(), _voorVc, NamespaceContext.getCurrent());
super.set_QName(v);
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
QName v;
if (_validateOnSet())
{
v = validateLexical(value.getStringValue(), _schemaType, _voorVc, NamespaceContext.getCurrent());
if (v != null)
validateValue(v, _schemaType, _voorVc);
}
else
v = JavaQNameHolder.validateLexical(value.getStringValue(), _voorVc, NamespaceContext.getCurrent());
super.set_QName(v);
}
代码示例来源:origin: com.github.pjfanning/xmlbeans
protected void set_xmlanysimple(XmlAnySimpleType value)
{
QName v;
if (_validateOnSet())
{
v = validateLexical(value.getStringValue(), _schemaType, _voorVc, NamespaceContext.getCurrent());
if (v != null)
validateValue(v, _schemaType, _voorVc);
}
else
v = JavaNotationHolder.validateLexical(value.getStringValue(), _voorVc, NamespaceContext.getCurrent());
super.set_QName(v);
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
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)
state.error(XmlErrorCodes.PATTERN_REGEX, new Object[] { facet.getValue().getStringValue(), e.getMessage() }, facet);
continue;
内容来源于网络,如有侵权,请联系作者删除!