本文整理了Java中org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setMatches()
方法的一些代码示例,展示了XMLFieldDescriptorImpl.setMatches()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFieldDescriptorImpl.setMatches()
方法的具体详情如下:
包路径:org.exolab.castor.xml.util.XMLFieldDescriptorImpl
类名称:XMLFieldDescriptorImpl
方法名:setMatches
[英]This is a space separated list of xml names that this Field descriptor matches. A '' is wild.
[中]这是此字段描述符匹配的xml名称的空格分隔列表。一个“”是野生的。
代码示例来源:origin: org.codehaus.castor/castor-xml
private XMLFieldDescriptorImpl createFieldDescriptor(Class type, String fieldName,
String xmlName) {
XMLFieldDescriptorImpl fieldDesc = new XMLFieldDescriptorImpl(type, fieldName, xmlName, null);
if (type.isArray()) {
fieldDesc.setNodeType(NodeType.Element);
}
// -- primitive types are converted to attributes by default
else if (type.isPrimitive()) {
fieldDesc.setNodeType(_primitiveNodeType);
} else {
fieldDesc.setNodeType(NodeType.Element);
}
// -- wildcard?
if (type == java.lang.Object.class) {
fieldDesc.setMatches(xmlName + " *");
}
return fieldDesc;
} // -- createFieldDescriptor
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
private XMLFieldDescriptorImpl createFieldDescriptor
(Class type, String fieldName, String xmlName)
{
XMLFieldDescriptorImpl fieldDesc =
new XMLFieldDescriptorImpl(type, fieldName, xmlName, null);
if (type.isArray()) {
fieldDesc.setNodeType(NodeType.Element);
}
//-- primitive types are converted to attributes by default
else if (type.isPrimitive()) {
fieldDesc.setNodeType(_primitiveNodeType);
}
else {
fieldDesc.setNodeType(NodeType.Element);
}
//-- wildcard?
if (type == java.lang.Object.class) {
fieldDesc.setMatches(xmlName + " *");
}
return fieldDesc;
} //-- createFieldDescriptor
代码示例来源:origin: org.codehaus.castor/castor-xml
_desc.setMatches("*");
_desc.setHandler(new XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
desc.setMatches("*");
desc.setHandler(new XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
_desc.setMatches("*");
_desc.setHandler(new XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/castor-xml
desc.setMatches("*");
desc.setHandler(new XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
fieldDesc.setMatches("*");
代码示例来源:origin: org.codehaus.castor/castor-xml
fieldDesc.setMatches("*");
代码示例来源:origin: org.codehaus.castor/castor-xml
xmlDesc.setMatches(match);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
xmlDesc.setMatches(match);
代码示例来源:origin: org.codehaus.castor/castor-xml
newFieldDesc.setMatches("*");
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
newFieldDesc.setMatches("*");
内容来源于网络,如有侵权,请联系作者删除!