org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setFieldType()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setFieldType()方法的一些代码示例,展示了XMLFieldDescriptorImpl.setFieldType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFieldDescriptorImpl.setFieldType()方法的具体详情如下:
包路径:org.exolab.castor.xml.util.XMLFieldDescriptorImpl
类名称:XMLFieldDescriptorImpl
方法名:setFieldType

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());

相关文章