private SchemaProperty[] getDerivedProperties(SchemaType sType) { // We have to see if this is redefined, because if it is we have // to include all properties associated to its supertypes QName name = sType.getName(); if (name != null && name.equals(sType.getBaseType().getName())) { SchemaType sType2 = sType.getBaseType(); // Walk all the redefined types and record any properties // not present in sType, because the redefined types do not // have a generated class to represent them SchemaProperty[] props = sType.getDerivedProperties(); Map propsByName = new LinkedHashMap(); for (int i = 0; i < props.length; i++) propsByName.put(props[i].getName(), props[i]); while (sType2 != null && name.equals(sType2.getName())) { props = sType2.getDerivedProperties(); for (int i = 0; i < props.length; i++) if (!propsByName.containsKey(props[i].getName())) propsByName.put(props[i].getName(), props[i]); sType2 = sType2.getBaseType(); } return (SchemaProperty[]) propsByName.values().toArray(new SchemaProperty[0]); } else return sType.getDerivedProperties(); }
while (!baseType.isSimpleType() && !baseType.isBuiltinType()) SchemaProperty[] baseProperties = baseType.getDerivedProperties(); for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() &&
private SchemaProperty[] getDerivedProperties(SchemaType sType) { // We have to see if this is redefined, because if it is we have // to include all properties associated to its supertypes QName name = sType.getName(); if (name != null && name.equals(sType.getBaseType().getName())) { SchemaType sType2 = sType.getBaseType(); // Walk all the redefined types and record any properties // not present in sType, because the redefined types do not // have a generated class to represent them SchemaProperty[] props = sType.getDerivedProperties(); Map propsByName = new LinkedHashMap(); for (int i = 0; i < props.length; i++) propsByName.put(props[i].getName(), props[i]); while (sType2 != null && name.equals(sType2.getName())) { props = sType2.getDerivedProperties(); for (int i = 0; i < props.length; i++) if (!propsByName.containsKey(props[i].getName())) propsByName.put(props[i].getName(), props[i]); sType2 = sType2.getBaseType(); } return (SchemaProperty[]) propsByName.values().toArray(new SchemaProperty[0]); } else return sType.getDerivedProperties(); }
private SchemaProperty[] getDerivedProperties(SchemaType sType) { // We have to see if this is redefined, because if it is we have // to include all properties associated to its supertypes QName name = sType.getName(); if (name != null && name.equals(sType.getBaseType().getName())) { SchemaType sType2 = sType.getBaseType(); // Walk all the redefined types and record any properties // not present in sType, because the redefined types do not // have a generated class to represent them SchemaProperty[] props = sType.getDerivedProperties(); Map propsByName = new LinkedHashMap(); for (int i = 0; i < props.length; i++) propsByName.put(props[i].getName(), props[i]); while (sType2 != null && name.equals(sType2.getName())) { props = sType2.getDerivedProperties(); for (int i = 0; i < props.length; i++) if (!propsByName.containsKey(props[i].getName())) propsByName.put(props[i].getName(), props[i]); sType2 = sType2.getBaseType(); } return (SchemaProperty[]) propsByName.values().toArray(new SchemaProperty[0]); } else return sType.getDerivedProperties(); }
while (!baseType.isSimpleType() && !baseType.isBuiltinType()) SchemaProperty[] baseProperties = baseType.getDerivedProperties(); for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() &&
while (!baseType.isSimpleType() && !baseType.isBuiltinType()) SchemaProperty[] baseProperties = baseType.getDerivedProperties(); for (int i = 0; i < baseProperties.length; i++) if (!(baseProperties[i].isAttribute() &&