private Type getType( XMLSchemaTypeExp exp ) { if( exp instanceof ComplexTypeExp ) { final ComplexTypeExp cexp = (ComplexTypeExp)exp; return new Type(){ public int getDerivationMethod() { return cexp.derivationMethod; } public int getBlockValue() { return cexp.block; } public Type getBaseType() { if( cexp.complexBaseType!=null ) return getType(cexp.complexBaseType); if( cexp.simpleBaseType!=null ) return getType(cexp.simpleBaseType.getCreatedType()); return getType(complexUrType); } public Object getCore() { return cexp; } }; } else { return getType( ((SimpleTypeExp)exp).getDatatype() ); } }
private Type getType( XMLSchemaTypeExp exp ) { if( exp instanceof ComplexTypeExp ) { final ComplexTypeExp cexp = (ComplexTypeExp)exp; return new Type(){ public int getDerivationMethod() { return cexp.derivationMethod; } public int getBlockValue() { return cexp.block; } public Type getBaseType() { if( cexp.complexBaseType!=null ) return getType(cexp.complexBaseType); if( cexp.simpleBaseType!=null ) return getType(cexp.simpleBaseType.getCreatedType()); return getType(complexUrType); } public Object getCore() { return cexp; } }; } else { return getType( ((SimpleTypeExp)exp).getDatatype() ); } }
private Type getType( XMLSchemaTypeExp exp ) { if( exp instanceof ComplexTypeExp ) { final ComplexTypeExp cexp = (ComplexTypeExp)exp; return new Type(){ public int getDerivationMethod() { return cexp.derivationMethod; } public int getBlockValue() { return cexp.block; } public Type getBaseType() { if( cexp.complexBaseType!=null ) return getType(cexp.complexBaseType); if( cexp.simpleBaseType!=null ) return getType(cexp.simpleBaseType.getCreatedType()); return getType(complexUrType); } public Object getCore() { return cexp; } }; } else { return getType( ((SimpleTypeExp)exp).getDatatype() ); } }
private Type getType( XMLSchemaTypeExp exp ) { if( exp instanceof ComplexTypeExp ) { final ComplexTypeExp cexp = (ComplexTypeExp)exp; return new Type(){ public int getDerivationMethod() { return cexp.derivationMethod; } public int getBlockValue() { return cexp.block; } public Type getBaseType() { if( cexp.complexBaseType!=null ) return getType(cexp.complexBaseType); if( cexp.simpleBaseType!=null ) return getType(cexp.simpleBaseType.getCreatedType()); return getType(complexUrType); } public Object getCore() { return cexp; } }; } else { return getType( ((SimpleTypeExp)exp).getDatatype() ); } }