/** * @see com.sun.xml.xsom.visitor.XSFunction#complexType(XSComplexType) */ public String complexType(XSComplexType type) { String name = type.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.complexType( type ); }
/** * @see com.sun.xml.xsom.visitor.XSFunction#complexType(XSComplexType) */ public String complexType(XSComplexType type) { String name = type.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.complexType( type ); }
/** * @see com.sun.xml.xsom.visitor.XSFunction#complexType(XSComplexType) */ public String complexType(XSComplexType type) { String name = type.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.complexType( type ); }
/** * @see com.sun.xml.xsom.visitor.XSFunction#complexType(XSComplexType) */ public String complexType(XSComplexType type) { String name = type.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.complexType( type ); }
/** * @see com.sun.xml.xsom.visitor.XSFunction#complexType(XSComplexType) */ public String complexType(XSComplexType type) { String name = type.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.complexType( type ); }
public MutableComplexTypeDefinition createComplexTypeDefinition(XSComplexType complexType, PrismContext prismContext, XSAnnotation annotation) throws SchemaException { QName typeName = new QName(complexType.getTargetNamespace(),complexType.getName()); return new ComplexTypeDefinitionImpl(typeName, prismContext); }
/** * Derives a name from a schema component. * For complex types, we take redefinition into account when * deriving a default name. */ private String deriveName( XSComplexType comp ) { String seed = builder.deriveName( comp.getName(), comp ); int cnt = comp.getRedefinedCount(); for( ; cnt>0; cnt-- ) seed = "Original"+seed; return seed; }
/** * Derives a name from a schema component. * For complex types, we take redefinition into account when * deriving a default name. */ private String deriveName( XSComplexType comp ) { String seed = builder.deriveName( comp.getName(), comp ); int cnt = comp.getRedefinedCount(); for( ; cnt>0; cnt-- ) seed = "Original"+seed; return seed; }
/** * Derives a name from a schema component. * For complex types, we take redefinition into account when * deriving a default name. */ private String deriveName( XSComplexType comp ) { String seed = builder.deriveName( comp.getName(), comp ); int cnt = comp.getRedefinedCount(); for( ; cnt>0; cnt-- ) seed = "Original"+seed; return seed; }
/** * Derives a name from a schema component. * For complex types, we take redefinition into account when * deriving a default name. */ private String deriveName( XSComplexType comp ) { String seed = builder.deriveName( comp.getName(), comp ); int cnt = comp.getRedefinedCount(); for( ; cnt>0; cnt-- ) seed = "Original"+seed; return seed; }
/** * Derives a name from a schema component. * For complex types, we take redefinition into account when * deriving a default name. */ private String deriveName( XSComplexType comp ) { String seed = builder.deriveName( comp.getName(), comp ); int cnt = comp.getRedefinedCount(); for( ; cnt>0; cnt-- ) seed = "Original"+seed; return seed; }
public void build(XSComplexType ct) { XSComplexType baseType = ct.getBaseType().asComplexType(); // build the base class CClass baseClass = selector.bindToType(baseType, ct, true); assert baseClass != null; // global complex type must map to a class if (!checkIfExtensionSafe(baseType, ct)) { // error. We can't handle any further extension errorReceiver.error(ct.getLocator(), Messages.ERR_NO_FURTHER_EXTENSION.format( baseType.getName(), ct.getName() ) ); return; } selector.getCurrentBean().setBaseClass(baseClass); builder.recordBindingMode(ct, ComplexTypeBindingMode.FALLBACK_EXTENSION); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p; RawTypeSet ts = RawTypeSetBuilder.build(ct.getContentType().asParticle(), false); p = prop.createDummyExtendedMixedReferenceProperty("contentOverrideFor" + ct.getName(), ct, ts); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { XSComplexType baseType = ct.getBaseType().asComplexType(); // build the base class CClass baseClass = selector.bindToType(baseType, ct, true); assert baseClass != null; // global complex type must map to a class if (!checkIfExtensionSafe(baseType, ct)) { // error. We can't handle any further extension errorReceiver.error(ct.getLocator(), Messages.ERR_NO_FURTHER_EXTENSION.format( baseType.getName(), ct.getName() ) ); return; } selector.getCurrentBean().setBaseClass(baseClass); builder.recordBindingMode(ct, ComplexTypeBindingMode.FALLBACK_EXTENSION); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p; RawTypeSet ts = RawTypeSetBuilder.build(ct.getContentType().asParticle(), false); p = prop.createDummyExtendedMixedReferenceProperty("contentOverrideFor" + ct.getName(), ct, ts); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }