本文整理了Java中org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setFieldType()
方法的一些代码示例,展示了XMLFieldDescriptorImpl.setFieldType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFieldDescriptorImpl.setFieldType()
方法的具体详情如下:
包路径:org.exolab.castor.xml.util.XMLFieldDescriptorImpl
类名称:XMLFieldDescriptorImpl
方法名:setFieldType
暂无
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
public XMLFieldDescriptorImpl(final Class fieldType, final String fieldName,
final String xmlName, final NodeType nodeType) {
_matches = new String[0];
if (fieldName == null) { throw new IllegalArgumentException(NULL_NAME_ERR); }
if (fieldType == null) { throw new IllegalArgumentException(NULL_CLASS_ERR); }
setFieldName(fieldName);
if (fieldType == org.exolab.castor.types.AnyNode.class) {
// if the field type is an AnyNode Castor must treat it as
// an object to avoid changes in the marshaling framework
setFieldType(java.lang.Object.class);
} else {
setFieldType(fieldType);
}
_nodeType = ((nodeType == null) ? NodeType.Attribute : nodeType );
//-- call the setXMLName method to handle checking for full path
setXMLName(xmlName);
}
代码示例来源:origin: org.codehaus.castor/castor-xml
public XMLFieldDescriptorImpl(final Class<?> fieldType, final String fieldName,
final String xmlName, final NodeType nodeType) {
_matches = new String[0];
if (fieldName == null) {
throw new IllegalArgumentException(NULL_NAME_ERR);
}
if (fieldType == null) {
throw new IllegalArgumentException(NULL_CLASS_ERR);
}
setFieldName(fieldName);
if (fieldType == org.exolab.castor.types.AnyNode.class) {
// if the field type is an AnyNode Castor must treat it as
// an object to avoid changes in the marshaling framework
setFieldType(java.lang.Object.class);
} else {
setFieldType(fieldType);
}
_nodeType = ((nodeType == null) ? NodeType.Attribute : nodeType);
// -- call the setXMLName method to handle checking for full path
setXMLName(xmlName);
}
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
setFieldType(java.lang.Object.class);
} else {
setFieldType(fieldDesc.getFieldType());
代码示例来源:origin: org.codehaus.castor/castor-xml
setFieldType(java.lang.Object.class);
} else {
setFieldType(fieldDesc.getFieldType());
内容来源于网络,如有侵权,请联系作者删除!