private ComplexTypeDefinition getOrProcessComplexType(QName typeName) throws SchemaException { ComplexTypeDefinition complexTypeDefinition = schema.findComplexTypeDefinition(typeName); if (complexTypeDefinition != null) { return complexTypeDefinition; } // The definition is not yet processed (or does not exist). Let's try to // process it. XSComplexType complexType = xsSchemaSet.getComplexType(typeName.getNamespaceURI(), typeName.getLocalPart()); return processComplexTypeDefinition(complexType); }
protected Object resolveReference( UName name ) { return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); }
protected Object resolveReference( UName name ) { return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); }
protected Object resolveReference( UName name ) { return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); }
protected Object resolveReference( UName name ) { return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); }
protected Object resolveReference( UName name ) { return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); }
XSOMParser parser = new XSOMParser(); //parser.setErrorHandler(...); //parser.setEntityResolver(...); parser.parse(new File(...)); XSSchemaSet sset = parser.getResult(); XSComplexType xt = sset.getComplexType("http://tempuri.org/XMLSchema.xsd", "test"); XSWildcard anyAttr = xt.getAttributeWildcard();
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
protected Object resolveReference( UName name ) { Object o = super.schema.getSimpleType( name.getNamespaceURI(), name.getName() ); if(o!=null) return o; return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); } protected String getErrorProperty() {
protected Object resolveReference( UName name ) { Object o = super.schema.getSimpleType( name.getNamespaceURI(), name.getName() ); if(o!=null) return o; return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); } protected String getErrorProperty() {
protected Object resolveReference( UName name ) { Object o = super.schema.getSimpleType( name.getNamespaceURI(), name.getName() ); if(o!=null) return o; return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); } protected String getErrorProperty() {
protected Object resolveReference( UName name ) { Object o = super.schema.getSimpleType( name.getNamespaceURI(), name.getName() ); if(o!=null) return o; return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); } protected String getErrorProperty() {
protected Object resolveReference( UName name ) { Object o = super.schema.getSimpleType( name.getNamespaceURI(), name.getName() ); if(o!=null) return o; return super.schema.getComplexType( name.getNamespaceURI(), name.getName()); } protected String getErrorProperty() {