本文整理了Java中org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setClassDescriptor()
方法的一些代码示例,展示了XMLFieldDescriptorImpl.setClassDescriptor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFieldDescriptorImpl.setClassDescriptor()
方法的具体详情如下:
包路径:org.exolab.castor.xml.util.XMLFieldDescriptorImpl
类名称:XMLFieldDescriptorImpl
方法名:setClassDescriptor
暂无
代码示例来源:origin: org.codehaus.castor/castor-xml
protected final void resolveRelations(ClassDescriptor clsDesc) {
FieldDescriptor[] fields;
fields = clsDesc.getFields();
for (int i = 0; i < fields.length; ++i) {
if (fields[i].getClassDescriptor() != null)
continue;
ClassDescriptor relDesc;
Class fieldType = fields[i].getFieldType();
if (fieldType != null) {
relDesc = getDescriptor(fieldType.getName());
if (relDesc != null && relDesc instanceof XMLClassDescriptor
&& fields[i] instanceof XMLFieldDescriptorImpl) {
((XMLFieldDescriptorImpl) fields[i]).setClassDescriptor(relDesc);
}
}
}
if (clsDesc instanceof XMLClassDescriptorImpl)
((XMLClassDescriptorImpl) clsDesc).sortDescriptors();
}
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
protected final void resolveRelations(ClassDescriptor clsDesc) {
FieldDescriptor[] fields;
fields = clsDesc.getFields();
for (int i = 0 ; i < fields.length ; ++i ) {
if (fields[i].getClassDescriptor() != null) continue;
ClassDescriptor relDesc;
Class fieldType = fields[i].getFieldType();
if (fieldType != null) {
relDesc = getDescriptor(fieldType.getName());
if (relDesc != null &&
relDesc instanceof XMLClassDescriptor &&
fields[ i ] instanceof XMLFieldDescriptorImpl) {
((XMLFieldDescriptorImpl) fields[i]).setClassDescriptor(relDesc);
}
}
}
if ( clsDesc instanceof XMLClassDescriptorImpl )
( (XMLClassDescriptorImpl) clsDesc ).sortDescriptors();
}
代码示例来源:origin: org.codehaus.castor/castor-xml
fieldDesc.setClassDescriptor(classDesc);
if (classDesc == null) {
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.LeftOfInDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.RightOfInDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.OperandDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.OperandDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: org.codehaus.castor/castor-xml
xmlDesc.setClassDescriptor(cd);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
xmlDesc.setClassDescriptor(cd);
代码示例来源:origin: org.codehaus.castor/castor-xml
if (cd != null) {
if (cd instanceof XMLClassDescriptor) {
setClassDescriptor(cd);
} else {
setClassDescriptor(new XMLClassDescriptorAdapter(cd, null, primitiveNodeType));
代码示例来源:origin: org.codehaus.castor/castor-xml
fieldDesc.setClassDescriptor(classDesc);
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
if (cd != null) {
if (cd instanceof XMLClassDescriptor) {
setClassDescriptor(cd);
} else {
setClassDescriptor(new XMLClassDescriptorAdapter(cd, null, primitiveNodeType));
代码示例来源:origin: org.codehaus.castor/com.springsource.org.castor
fieldDesc.setClassDescriptor(classDesc);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.ExpressionGroupTypeItemDescriptor());
desc.setMultivalued(true);
addFieldDescriptor(desc);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.ExprGroupTypeItemDescriptor());
desc.setMultivalued(true);
addFieldDescriptor(desc);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.ValueDescriptor());
desc.setMultivalued(true);
addFieldDescriptor(desc);
代码示例来源:origin: org.codehaus.castor/castor-codegen
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.exolab.castor.builder.binding.xml.descriptors.PackageTypeChoiceDescriptor());
desc.setNameSpaceURI("http://www.castor.org/SourceGenerator/Binding");
desc.setRequired(true);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.OperatorDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.OperatorDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
代码示例来源:origin: colddew/ralasafe
desc.setHandler(handler);
desc.setContainer(true);
desc.setClassDescriptor(new org.ralasafe.db.sql.xml.descriptors.ValueDescriptor());
desc.setRequired(true);
desc.setMultivalued(false);
内容来源于网络,如有侵权,请联系作者删除!