- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.codehaus.stax2.validation.XMLValidator.getAttributeType()
方法的一些代码示例,展示了XMLValidator.getAttributeType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLValidator.getAttributeType()
方法的具体详情如下:
包路径:org.codehaus.stax2.validation.XMLValidator
类名称:XMLValidator
方法名:getAttributeType
[英]Method for getting schema-specified type of an attribute, if information is available. If not, validators can return null to explicitly indicate no information was available.
[中]方法获取架构指定的属性类型(如果信息可用)。如果不是,验证程序可以返回null,以明确表示没有可用的信息。
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
}
代码示例来源:origin: woodstox/wstx-lgpl
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
代码示例来源:origin: woodstox/wstx-asl
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
@Override
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
}
代码示例来源:origin: FasterXML/woodstox
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
@Override
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
}
代码示例来源:origin: Nextdoor/bender
/**
* @return Schema (DTD, RNG, W3C Schema) based type of the attribute
* in specified index
*/
@Override
public final String getAttributeType(int index)
{
if (index == mIdAttrIndex && index >= 0) { // second check to ensure -1 is not passed
return "ID";
}
return (mValidator == null) ? WstxInputProperties.UNKNOWN_ATTR_TYPE :
mValidator.getAttributeType(index);
}
}
代码示例来源:origin: Nextdoor/bender
public String getAttributeType(int index)
{
String type = mFirst.getAttributeType(index);
/* Hmmh. Which heuristic to use here: obviously no answer (null or
* empty) is not useful. But what about the default type (CDATA)?
* We can probably find a more explicit type?
*/
if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
String type2 = mSecond.getAttributeType(index);
if (type2 != null && type2.length() > 0) {
return type2;
}
}
return type;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
public String getAttributeType(int index)
{
String type = mFirst.getAttributeType(index);
/* Hmmh. Which heuristic to use here: obviously no answer (null or
* empty) is not useful. But what about the default type (CDATA)?
* We can probably find a more explicit type?
*/
if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
String type2 = mSecond.getAttributeType(index);
if (type2 != null && type2.length() > 0) {
return type2;
}
}
return type;
}
代码示例来源:origin: woodstox/wstx-lgpl
public String getAttributeType(int index)
{
String type = mFirst.getAttributeType(index);
/* Hmmh. Which heuristic to use here: obviously no answer (null or
* empty) is not useful. But what about the default type (CDATA)?
* We can probably find a more explicit type?
*/
if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
String type2 = mSecond.getAttributeType(index);
if (type2 != null && type2.length() > 0) {
return type2;
}
}
return type;
}
代码示例来源:origin: woodstox/wstx-asl
public String getAttributeType(int index)
{
String type = mFirst.getAttributeType(index);
/* Hmmh. Which heuristic to use here: obviously no answer (null or
* empty) is not useful. But what about the default type (CDATA)?
* We can probably find a more explicit type?
*/
if (type == null || type.length() == 0 || type.equals(ATTR_TYPE_DEFAULT)) {
String type2 = mSecond.getAttributeType(index);
if (type2 != null && type2.length() > 0) {
return type2;
}
}
return type;
}
本文整理了Java中org.codehaus.stax2.validation.XMLValidator.getAttributeType()方法的一些代码示例,展示了XMLValidator.get
我是一名优秀的程序员,十分优秀!