예제 #1
0
 private boolean isReferenceNameInReferenceMappings(String referenceName) {
   Collection<ReferenceMapping> col = getReferenceMappings();
   for (ReferenceMapping rm : col) if (rm.getReference().equals(referenceName)) return true;
   return false;
 }
예제 #2
0
 public void addReferenceMapping(ReferenceMapping referenceMapping) throws XavaException {
   if (referenceMappings == null) referenceMappings = new HashMap();
   referenceMappings.put(referenceMapping.getReference(), referenceMapping);
   referenceMapping.setContainer(this);
 }