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

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

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

XMLFieldDescriptorImpl.setFieldName介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor

  1. public XMLFieldDescriptorImpl(final Class fieldType, final String fieldName,
  2. final String xmlName, final NodeType nodeType) {
  3. _matches = new String[0];
  4. if (fieldName == null) { throw new IllegalArgumentException(NULL_NAME_ERR); }
  5. if (fieldType == null) { throw new IllegalArgumentException(NULL_CLASS_ERR); }
  6. setFieldName(fieldName);
  7. if (fieldType == org.exolab.castor.types.AnyNode.class) {
  8. // if the field type is an AnyNode Castor must treat it as
  9. // an object to avoid changes in the marshaling framework
  10. setFieldType(java.lang.Object.class);
  11. } else {
  12. setFieldType(fieldType);
  13. }
  14. _nodeType = ((nodeType == null) ? NodeType.Attribute : nodeType );
  15. //-- call the setXMLName method to handle checking for full path
  16. setXMLName(xmlName);
  17. }

代码示例来源:origin: org.codehaus.castor/castor-xml

  1. public XMLFieldDescriptorImpl(final Class<?> fieldType, final String fieldName,
  2. final String xmlName, final NodeType nodeType) {
  3. _matches = new String[0];
  4. if (fieldName == null) {
  5. throw new IllegalArgumentException(NULL_NAME_ERR);
  6. }
  7. if (fieldType == null) {
  8. throw new IllegalArgumentException(NULL_CLASS_ERR);
  9. }
  10. setFieldName(fieldName);
  11. if (fieldType == org.exolab.castor.types.AnyNode.class) {
  12. // if the field type is an AnyNode Castor must treat it as
  13. // an object to avoid changes in the marshaling framework
  14. setFieldType(java.lang.Object.class);
  15. } else {
  16. setFieldType(fieldType);
  17. }
  18. _nodeType = ((nodeType == null) ? NodeType.Attribute : nodeType);
  19. // -- call the setXMLName method to handle checking for full path
  20. setXMLName(xmlName);
  21. }

代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor

  1. setFieldName(fieldDesc.getFieldName());

代码示例来源:origin: org.codehaus.castor/castor-xml

  1. setFieldName(fieldDesc.getFieldName());

相关文章