/** * Get a TypeEntry for the base type of this type, if one exists. * * @param symbolTable a <code>SymbolTable</code> value * @return a <code>TypeEntry</code> value */ public TypeEntry getComplexTypeExtensionBase(SymbolTable symbolTable) { if(!searchedForExtensionBase) { if (null == extensionBase) { extensionBase = SchemaUtils.getComplexElementExtensionBase(getNode(), symbolTable); } searchedForExtensionBase = true; } return extensionBase; } }
/** * Get a TypeEntry for the base type of this type, if one exists. * * @param symbolTable a <code>SymbolTable</code> value * @return a <code>TypeEntry</code> value */ public TypeEntry getComplexTypeExtensionBase(SymbolTable symbolTable) { if(!searchedForExtensionBase) { if (null == extensionBase) { extensionBase = SchemaUtils.getComplexElementExtensionBase(getNode(), symbolTable); } searchedForExtensionBase = true; } return extensionBase; } }
/** * Get a TypeEntry for the base type of this type, if one exists. * * @param symbolTable a <code>SymbolTable</code> value * @return a <code>TypeEntry</code> value */ public TypeEntry getComplexTypeExtensionBase(SymbolTable symbolTable) { if(!searchedForExtensionBase) { if (null == extensionBase) { extensionBase = SchemaUtils.getComplexElementExtensionBase(getNode(), symbolTable); } searchedForExtensionBase = true; } return extensionBase; } }
SchemaUtils.getComplexElementExtensionBase(parent.getNode(), emitter.getSymbolTable());
SchemaUtils.getComplexElementExtensionBase(parent.getNode(), emitter.getSymbolTable());
/** * Returns the base type of a given type with its symbol table. * This logic is extracted from JavaTypeWriter's constructor() method * for reusing. * * @param type * @param symbolTable * @return */ public static TypeEntry getBaseType(TypeEntry type, SymbolTable symbolTable) { Node node = type.getNode(); TypeEntry base = getComplexElementExtensionBase( node, symbolTable); if (base == null) { base = getComplexElementRestrictionBase(node, symbolTable); } if (base == null) { QName baseQName = getSimpleTypeBase(node); if (baseQName != null) { base = symbolTable.getType(baseQName); } } return base; }
/** * Returns the base type of a given type with its symbol table. * This logic is extracted from JavaTypeWriter's constructor() method * for reusing. * * @param type * @param symbolTable * @return */ public static TypeEntry getBaseType(TypeEntry type, SymbolTable symbolTable) { Node node = type.getNode(); TypeEntry base = getComplexElementExtensionBase( node, symbolTable); if (base == null) { base = getComplexElementRestrictionBase(node, symbolTable); } if (base == null) { QName baseQName = getSimpleTypeBase(node); if (baseQName != null) { base = symbolTable.getType(baseQName); } } return base; }
/** * Returns the base type of a given type with its symbol table. * This logic is extracted from JavaTypeWriter's constructor() method * for reusing. * * @param type * @param symbolTable * @return */ public static TypeEntry getBaseType(TypeEntry type, SymbolTable symbolTable) { Node node = type.getNode(); TypeEntry base = getComplexElementExtensionBase( node, symbolTable); if (base == null) { base = getComplexElementRestrictionBase(node, symbolTable); } if (base == null) { QName baseQName = getSimpleTypeBase(node); if (baseQName != null) { base = symbolTable.getType(baseQName); } } return base; }
TypeEntry extendType = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
TypeEntry extendType = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
TypeEntry extendType = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
SchemaUtils.getComplexElementExtensionBase(parent.getNode(), emitter.getSymbolTable());
&&SchemaUtils.getComplexElementExtensionBase(te.getNode(), symbolTable) == null && te.getContainedAttributes() == null) { if(!SchemaUtils.isSimpleTypeWithUnion(te.getNode())) {
SchemaUtils.getComplexElementExtensionBase(te.getNode(), symbolTable); Boolean.TRUE); base = SchemaUtils.getComplexElementExtensionBase( base.getNode(), symbolTable);
SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
SchemaUtils.getComplexElementExtensionBase(te.getNode(), symbolTable); Boolean.TRUE); base = SchemaUtils.getComplexElementExtensionBase( base.getNode(), symbolTable);
SchemaUtils.getComplexElementExtensionBase(te.getNode(), symbolTable); Boolean.TRUE); base = SchemaUtils.getComplexElementExtensionBase( base.getNode(), symbolTable);
} else { TypeEntry base = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
} else { TypeEntry base = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);
} else { TypeEntry base = SchemaUtils.getComplexElementExtensionBase(node, symbolTable);