本文整理了Java中org.exolab.castor.xml.util.XMLFieldDescriptorImpl.<init>()
方法的一些代码示例,展示了XMLFieldDescriptorImpl.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFieldDescriptorImpl.<init>()
方法的具体详情如下:
包路径:org.exolab.castor.xml.util.XMLFieldDescriptorImpl
类名称:XMLFieldDescriptorImpl
方法名:<init>
[英]Construct a new field descriptor for the specified field. This is an XML field descriptor wrapping a field descriptor and adding XML related properties and methods.
[中]为指定的字段构造一个新的字段描述符。这是一个XML字段描述符,用于包装字段描述符,并添加与XML相关的属性和方法。
代码示例来源:origin: org.codehaus.castor/castor-xml
new XMLFieldDescriptorImpl(_javaClass, "_elements", null, NodeType.Element);
FieldHandler handler = (new XMLFieldHandler() {
代码示例来源: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 = new XMLFieldDescriptorImpl(Object.class, "item", _xmlName, NodeType.Element);
代码示例来源:origin: org.codehaus.castor/castor-xml
new XMLFieldDescriptorImpl(Object.class, "_elements", null, NodeType.Element);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
XMLFieldDescriptorImpl desc = new XMLFieldDescriptorImpl(Object.class,
"_elements", null, NodeType.Element);
代码示例来源:origin: org.codehaus.castor/castor-xml
new XMLFieldDescriptorImpl(Object.class, "item", _xmlName, NodeType.Element);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
= new XMLFieldDescriptorImpl(Object.class, "item", _xmlName, NodeType.Element);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
_desc = new XMLFieldDescriptorImpl(Object.class, "item", _xmlName,
NodeType.Element);
代码示例来源:origin: org.codehaus.castor/castor-codegen
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_URI", "URI", org.exolab.castor.xml.NodeType.Attribute);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework
org.exolab.castor.xml.FieldValidator fieldValidator = null;
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
代码示例来源:origin: colddew/ralasafe
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_key", "key", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
代码示例来源:origin: colddew/ralasafe
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.ralasafe.db.sql.xml.Column.class, "_column", "column", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
代码示例来源:origin: colddew/ralasafe
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.ralasafe.db.sql.xml.Column.class, "_column", "column", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
代码示例来源:origin: colddew/ralasafe
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
代码示例来源:origin: org.codehaus.castor/castor-xml-schema
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
代码示例来源:origin: colddew/ralasafe
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.ralasafe.db.sql.xml.LeftOfIn.class, "_leftOfIn", "-error-if-this-is-used-", org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
= new XMLFieldDescriptorImpl(fieldDesc,
fieldDesc.getXMLName(),
fieldDesc.getNodeType(),
代码示例来源:origin: org.codehaus.castor/castor-xml
new XMLFieldDescriptorImpl(fieldDesc, fieldDesc.getXMLName(), fieldDesc.getNodeType(),
getInternalContext().getPrimitiveNodeType());
内容来源于网络,如有侵权,请联系作者删除!