for (MetadataElement element : item.getReferences()) { sb.append(" Ref : " + element.getRef()); sb.append(NEWLINE); for (MetadataElement element : item.getReferences()) { sb.append(" Ref : " + element.getRef()); sb.append(NEWLINE);
for (MetadataElement element : item.getReferences()) { sb.append(" Ref : " + element.getRef()); sb.append(NEWLINE); for (MetadataElement element : item.getReferences()) { sb.append(" Ref : " + element.getRef()); sb.append(NEWLINE);
/** * Adds a new reference to the specific element class. If no element class is found, then a new element class. will * be created. * * @param className * the class name * @param classReference * the new reference to be added. */ public void addClassReference(final String className, final MetadataElement classReference) { classReference.setRef(getNamespaceValue(classReference.getRef())); for (MetadataItem item : classList) { if (item.getName().equals(className) && item.getNamespace().equals(getCurrentNamespace()) && item.getPackageApi().equals(getCurrentPackageApi())) { item.getReferences().add(classReference); return; } } final MetadataItem newItem = new MetadataItem(className); newItem.getReferences().add(classReference); newItem.setNamespace(getCurrentNamespace()); newItem.setSchemaName(getCurrentSchmema()); newItem.setPackageApi(getCurrentPackageApi()); newItem.setPackageImpl(getCurrentPackageImpl()); classList.add(newItem); }
/** * Adds a new reference to the specific group element class. If no group element class is found, then a new group * element class. will be created. * * @param groupName * the group class name of * @param groupReference * the new reference to be added. */ public void addGroupReference(final String groupName, final MetadataElement groupReference) { groupReference.setRef(getNamespaceValue(groupReference.getRef())); for (MetadataItem item : groupList) { if (item.getName().equals(groupName) && item.getNamespace().equals(getCurrentNamespace())) { item.getReferences().add(groupReference); return; } } final MetadataItem newItem = new MetadataItem(groupName); newItem.getReferences().add(groupReference); newItem.setNamespace(getCurrentNamespace()); newItem.setSchemaName(getCurrentSchmema()); newItem.setPackageApi(getCurrentPackageApi()); newItem.setPackageImpl(getCurrentPackageImpl()); groupList.add(newItem); }
/** * Adds a new reference to the specific group element class. If no group element class is found, then a new group * element class. will be created. * * @param groupName * the group class name of * @param groupReference * the new reference to be added. */ public void addGroupReference(final String groupName, final MetadataElement groupReference) { groupReference.setRef(getNamespaceValue(groupReference.getRef())); for (MetadataItem item : groupList) { if (item.getName().equals(groupName) && item.getNamespace().equals(getCurrentNamespace())) { item.getReferences().add(groupReference); return; } } final MetadataItem newItem = new MetadataItem(groupName); newItem.getReferences().add(groupReference); newItem.setNamespace(getCurrentNamespace()); newItem.setSchemaName(getCurrentSchmema()); newItem.setPackageApi(getCurrentPackageApi()); newItem.setPackageImpl(getCurrentPackageImpl()); groupList.add(newItem); }
/** * Adds a new reference to the specific element class. If no element class is found, then a new element class. will * be created. * * @param className * the class name * @param classReference * the new reference to be added. */ public void addClassReference(final String className, final MetadataElement classReference) { classReference.setRef(getNamespaceValue(classReference.getRef())); for (MetadataItem item : classList) { if (item.getName().equals(className) && item.getNamespace().equals(getCurrentNamespace()) && item.getPackageApi().equals(getCurrentPackageApi())) { item.getReferences().add(classReference); return; } } final MetadataItem newItem = new MetadataItem(className); newItem.getReferences().add(classReference); newItem.setNamespace(getCurrentNamespace()); newItem.setSchemaName(getCurrentSchmema()); newItem.setPackageApi(getCurrentPackageApi()); newItem.setPackageImpl(getCurrentPackageImpl()); classList.add(newItem); }
for (MetadataElement element : metadataClass.getReferences()) { final Element childElement = doc.createElement("include"); for (MetadataElement element : metadataClass.getReferences()) { final Element childElement = doc.createElement("include");
for (MetadataElement element : metadataClass.getReferences()) { final Element childElement = doc.createElement("include"); for (MetadataElement element : metadataClass.getReferences()) { final Element childElement = doc.createElement("include");
for (MetadataElement element : item.getReferences()) { if (!isDataType(element.getType(), metadata)) { if (!classList.contains(element.getRef())) { for (MetadataElement element : item.getReferences()) { if (!isDataType(element.getType(), metadata)) { if (!classList.contains(element.getRef())) {
for (MetadataElement element : item.getReferences()) { if (!isDataType(element.getType(), metadata)) { if (!classList.contains(element.getRef())) { for (MetadataElement element : item.getReferences()) { if (!isDataType(element.getType(), metadata)) { if (!classList.contains(element.getRef())) {