本文整理了Java中org.eclipse.xsd.XSDComplexTypeDefinition.getBaseType()
方法的一些代码示例,展示了XSDComplexTypeDefinition.getBaseType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDComplexTypeDefinition.getBaseType()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDComplexTypeDefinition
类名称:XSDComplexTypeDefinition
方法名:getBaseType
[英]Returns the value of the 'Base Type Definition' reference.
This represents the base type definition infoset property.
[中]返回“基类型定义”引用的值。
这表示base type definitioninfoset属性。
代码示例来源:origin: geotools/geotools
@Override
public AttributeType buildSuper() {
XSDTypeDefinition baseType = xsdType.getBaseType();
if (baseType != null && baseType.getName() != null && !baseType.equals(xsdType)) {
return createType(baseType, DUMMY_DEPTH);
} else {
return null;
}
}
代码示例来源:origin: geotools/geotools
private static void visitElements(
XSDComplexTypeDefinition cType, ElementVisitor visitor, boolean includeParents) {
if (includeParents) {
LinkedList baseTypes = new LinkedList();
XSDTypeDefinition baseType = cType.getBaseType();
while ((baseType != null) && (baseType != baseType.getBaseType())) {
if (baseType instanceof XSDComplexTypeDefinition) {
baseTypes.addLast(baseType);
}
baseType = baseType.getBaseType();
}
for (Iterator it = baseTypes.iterator(); it.hasNext(); ) {
baseType = (XSDTypeDefinition) it.next();
visitElements((XSDComplexTypeDefinition) baseType, visitor);
}
}
visitElements(cType, visitor);
}
代码示例来源:origin: geotools/geotools
XSDTypeDefinition baseType = xsdType.getBaseType();
if (baseType != null && !baseType.equals(xsdType)) {
if (baseType.getName() != null) {
代码示例来源:origin: org.geotools/gt2-xml-xsd
private static void visitElements(XSDComplexTypeDefinition cType,
ElementVisitor visitor, boolean includeParents) {
if(includeParents){
LinkedList baseTypes = new LinkedList();
XSDTypeDefinition baseType = cType.getBaseType();
while(baseType != null && baseType != baseType.getBaseType()){
if(baseType instanceof XSDComplexTypeDefinition){
baseTypes.addLast(baseType);
}
baseType = baseType.getBaseType();
}
for(Iterator it = baseTypes.iterator(); it.hasNext();){
baseType = (XSDTypeDefinition) it.next();
visitElements((XSDComplexTypeDefinition) baseType, visitor);
}
}
visitElements(cType, visitor);
}
代码示例来源:origin: org.geotools.xsd/gt-core
private static void visitElements(XSDComplexTypeDefinition cType, ElementVisitor visitor,
boolean includeParents) {
if (includeParents) {
LinkedList baseTypes = new LinkedList();
XSDTypeDefinition baseType = cType.getBaseType();
while ((baseType != null) && (baseType != baseType.getBaseType())) {
if (baseType instanceof XSDComplexTypeDefinition) {
baseTypes.addLast(baseType);
}
baseType = baseType.getBaseType();
}
for (Iterator it = baseTypes.iterator(); it.hasNext();) {
baseType = (XSDTypeDefinition) it.next();
visitElements((XSDComplexTypeDefinition) baseType, visitor);
}
}
visitElements(cType, visitor);
}
代码示例来源:origin: org.geotools/gt2-xml-core
private static void visitElements(XSDComplexTypeDefinition cType, ElementVisitor visitor,
boolean includeParents) {
if (includeParents) {
LinkedList baseTypes = new LinkedList();
XSDTypeDefinition baseType = cType.getBaseType();
while ((baseType != null) && (baseType != baseType.getBaseType())) {
if (baseType instanceof XSDComplexTypeDefinition) {
baseTypes.addLast(baseType);
}
baseType = baseType.getBaseType();
}
for (Iterator it = baseTypes.iterator(); it.hasNext();) {
baseType = (XSDTypeDefinition) it.next();
visitElements((XSDComplexTypeDefinition) baseType, visitor);
}
}
visitElements(cType, visitor);
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
private void fillTypesCombo()
{
baseTypeCombo.removeAll();
baseTypeCombo.add(Messages._UI_ACTION_BROWSE);
baseTypeCombo.add(Messages._UI_ACTION_NEW);
// Add the current Type of this attribute if needed
XSDComplexTypeDefinition complexType = (XSDComplexTypeDefinition) input;
XSDTypeDefinition baseType = complexType.getBaseType();
if (baseType != null && baseType.getQName() != null)
{
String currentTypeName = baseType.getQName(xsdSchema); //no prefix
if (currentTypeName != null && !currentTypeName.equals("anyType"))
baseTypeCombo.add(currentTypeName);
}
}
内容来源于网络,如有侵权,请联系作者删除!