/** * adds an attribute to the vector * helper used by addAttributeGroupToVector * * @param v * @param symbolTable * @param type * @param name */ private static void addAttributeToVector(Vector v, SymbolTable symbolTable, QName type, QName name) { TypeEntry typeEnt = symbolTable.getTypeEntry(type, false); if (typeEnt != null) // better not be null { v.add(new ContainedAttribute(typeEnt, name)); } }
String typeName = attr.getType().getName(); if (attr.getOptional()) { typeName = Utils.getWrapperType(typeName);
new ContainedAttribute(type, attributeName); attr.setOptional(useValue.equalsIgnoreCase("optional"));
for (int i = 0; i < v.size(); i++) { ContainedAttribute attr = (ContainedAttribute) v.get(i); TypeEntry te = attr.getType(); if (!types.contains(te)) { types.add(te);
String typeName = attr.getType().getName(); if (attr.getOptional()) { typeName = Utils.getWrapperType(typeName);
new ContainedAttribute(type, attributeName); attr.setOptional(useValue.equalsIgnoreCase("optional"));
for (int i = 0; i < v.size(); i++) { ContainedAttribute attr = (ContainedAttribute) v.get(i); TypeEntry te = attr.getType(); if (!types.contains(te)) { types.add(te);
String typeName = attr.getType().getName(); if (attr.getOptional()) { typeName = Utils.getWrapperType(typeName);
new ContainedAttribute(type, attributeName); attr.setOptional(useValue.equalsIgnoreCase("optional"));
/** * adds an attribute to the vector * helper used by addAttributeGroupToVector * * @param v * @param symbolTable * @param type * @param name */ private static void addAttributeToVector(Vector v, SymbolTable symbolTable, QName type, QName name) { TypeEntry typeEnt = symbolTable.getTypeEntry(type, false); if (typeEnt != null) // better not be null { v.add(new ContainedAttribute(typeEnt, name)); } }
for (int i = 0; i < v.size(); i++) { ContainedAttribute attr = (ContainedAttribute) v.get(i); TypeEntry te = attr.getType(); if (!types.contains(te)) { types.add(te);
String typeName = attr.getType().getName(); String variableName = getAttributeName(attr); if (attr.getOptional()) { typeName = Utils.getWrapperType(typeName); if (null != Utils.getEnumerationBaseAndValues(attr.getType().getNode(), emitter.getSymbolTable())) { enumerationTypes.add(typeName);