本文整理了Java中org.apache.xmlbeans.SchemaTypeLoader.findDocumentType()
方法的一些代码示例,展示了SchemaTypeLoader.findDocumentType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SchemaTypeLoader.findDocumentType()
方法的具体详情如下:
包路径:org.apache.xmlbeans.SchemaTypeLoader
类名称:SchemaTypeLoader
方法名:findDocumentType
[英]Returns the document type rooted at the given element name, or null if none.
[中]返回以给定元素名为根的文档类型,如果没有,则返回null。
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
private SchemaType typeForGlobalElement(QName qname)
{
assert qname!=null;
SchemaType docType = _stl.findDocumentType(qname);
if (docType==null)
{
addError("Schema document type not found for element '" + qname + "'.");
_state = STATE_ERROR;
}
return docType;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
SchemaTypeImpl findDocumentType(QName name, String chameleonNamespace, String sourceNamespace)
{
name = compatName(name, chameleonNamespace);
SchemaTypeImpl result = (SchemaTypeImpl)_documentTypes.get(name);
boolean foundOnLoader = false;
if (result == null)
{
result = (SchemaTypeImpl)_importingLoader.findDocumentType(name);
foundOnLoader = result != null;
}
if (!foundOnLoader && sourceNamespace != null)
registerDependency(sourceNamespace, name.getNamespaceURI());
return result;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
SchemaType docType = wildcardTypeLoader.findDocumentType(eltName);
if (docType != null)
prop = docType.getElementProperty(eltName);
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
typeLoader.findDocumentType(
XMLNameHelper.getQName( xis.next().getName() ) );
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
private SchemaType typeForGlobalElement(QName qname)
{
assert qname!=null;
SchemaType docType = _stl.findDocumentType(qname);
if (docType==null)
{
addError("Schema document type not found for element '" + qname + "'.");
_state = STATE_ERROR;
}
return docType;
}
代码示例来源:origin: com.github.pjfanning/xmlbeans
private SchemaType typeForGlobalElement(QName qname)
{
assert qname!=null;
SchemaType docType = _stl.findDocumentType(qname);
if (docType==null)
{
addError("Schema document type not found for element '" + qname + "'.");
_state = STATE_ERROR;
}
return docType;
}
代码示例来源:origin: com.github.pjfanning/xmlbeans
SchemaTypeImpl findDocumentType(QName name, String chameleonNamespace, String sourceNamespace)
{
name = compatName(name, chameleonNamespace);
SchemaTypeImpl result = (SchemaTypeImpl)_documentTypes.get(name);
boolean foundOnLoader = false;
if (result == null)
{
result = (SchemaTypeImpl)_importingLoader.findDocumentType(name);
foundOnLoader = result != null;
}
if (!foundOnLoader && sourceNamespace != null)
registerDependency(sourceNamespace, name.getNamespaceURI());
return result;
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
SchemaTypeImpl findDocumentType(QName name, String chameleonNamespace, String sourceNamespace)
{
name = compatName(name, chameleonNamespace);
SchemaTypeImpl result = (SchemaTypeImpl)_documentTypes.get(name);
boolean foundOnLoader = false;
if (result == null)
{
result = (SchemaTypeImpl)_importingLoader.findDocumentType(name);
foundOnLoader = result != null;
}
if (!foundOnLoader && sourceNamespace != null)
registerDependency(sourceNamespace, name.getNamespaceURI());
return result;
}
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
c._locale._schemaTypeLoader.findDocumentType(docElemName);
代码示例来源:origin: org.apache.cxf/cxf-rt-databinding-xmlbeans
public String getType(QName qn, boolean element) {
String ret;
if (element) {
SchemaType type = typeSystem.findDocumentType(qn);
if (type == null) {
type = typeLoader.findDocumentType(qn);
}
if (type == null) {
return null;
}
ret = type.getFullJavaName();
if (ret.contains("$")) {
ret = ret.substring(0, ret.indexOf('$'));
}
return ret;
}
SchemaType type = typeSystem.findType(qn);
if (type == null) {
type = typeLoader.findType(qn);
}
if (type == null
&& Constants.URI_2001_SCHEMA_XSD.equals(qn.getNamespaceURI())) {
return JAXBUtils.builtInTypeToJavaType(qn.getLocalPart());
}
if (type == null) {
return null;
}
ret = type.getFullJavaName();
return ret.replace('$', '.');
}
代码示例来源:origin: org.codehaus.xfire/xfire-generator
public JType getType(GenerationContext context, QName concreteType, QName schemaType)
throws GenerationException
{
SchemaType xst = loader.findDocumentType(concreteType);
if (xst == null)
{
xst = loader.findDocumentType(schemaType);
}
if (xst != null)
{
return context.getCodeModel().ref(xst.getJavaClass());
}
else
{
Class cls;
Type type = tm.getType(schemaType);
cls = (type != null) ? cls = type.getTypeClass() : XmlObject.class;
return context.getCodeModel().ref(cls);
}
}
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
SchemaType docType = wildcardTypeLoader.findDocumentType(eltName);
if (docType != null)
prop = docType.getElementProperty(eltName);
代码示例来源:origin: com.github.pjfanning/xmlbeans
SchemaType docType = wildcardTypeLoader.findDocumentType(eltName);
if (docType != null)
prop = docType.getElementProperty(eltName);
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
typeLoader.findDocumentType(
XMLNameHelper.getQName( xis.next().getName() ) );
代码示例来源:origin: com.github.pjfanning/xmlbeans
typeLoader.findDocumentType(
XMLNameHelper.getQName( xis.next().getName() ) );
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
c._locale._schemaTypeLoader.findDocumentType(docElemName);
代码示例来源:origin: com.github.pjfanning/xmlbeans
c._locale._schemaTypeLoader.findDocumentType(docElemName);
内容来源于网络,如有侵权,请联系作者删除!