本文整理汇总了Java中org.apache.xerces.impl.xs.XSElementDecl.getName方法的典型用法代码示例。如果您正苦于以下问题:Java XSElementDecl.getName方法的具体用法?Java XSElementDecl.getName怎么用?Java XSElementDecl.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.xerces.impl.xs.XSElementDecl
的用法示例。
在下文中一共展示了XSElementDecl.getName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: analyzeElement
import org.apache.xerces.impl.xs.XSElementDecl; //导入方法依赖的package包/类
private void analyzeElement(IXSDNode currentNode, XSParticleDecl fatherParticle, XSElementDecl elementDeclaration) {
if (logger.isDebugEnabled()) logger.debug("analyzeElement: " + elementDeclaration.getName());
String elementName = elementDeclaration.getName();
IXSDNode element = null;
if (elementDeclaration.getScope() == XSConstants.SCOPE_GLOBAL) {
if (logger.isDebugEnabled()) logger.debug(elementName + " has GLOBAL SCOPE");
element = globalElements.get(elementName);
if (element == null) {
element = createNewElement(elementDeclaration);
globalElements.put(elementName, element);
analyzeType(element, fatherParticle, elementDeclaration);
} else {
element.setNested(true);
element = element.clone();
setCardinality(element, fatherParticle);
}
} else {
element = createNewElement(elementDeclaration);
analyzeType(element, fatherParticle, elementDeclaration);
}
if (currentNode != null) {
currentNode.addChild(element);
}
}
示例2: createNewElement
import org.apache.xerces.impl.xs.XSElementDecl; //导入方法依赖的package包/类
private IXSDNode createNewElement(XSElementDecl elementDeclaration) {
String elementName = elementDeclaration.getName();
IXSDNode element = new ElementDeclaration(elementName);
constraintLoader.checkElementConstraints(xsdSchema, elementDeclaration);
element.setNullable(elementDeclaration.getNillable());
return element;
}
示例3: addGlobalElementDecl
import org.apache.xerces.impl.xs.XSElementDecl; //导入方法依赖的package包/类
void addGlobalElementDecl(XSElementDecl decl) {
final String namespace = decl.getNamespace();
final String declKey = (namespace == null || namespace.length() == 0)
? "," + decl.getName() : namespace + "," + decl.getName();
if (fGlobalElemDecls.get(declKey) == null) {
fGlobalElemDecls.put(declKey, decl);
}
}