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

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

本文整理了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

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

setFieldName(fieldDesc.getFieldName());

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

setFieldName(fieldDesc.getFieldName());

相关文章