/** * Returns the set of environment properties of this app client. */ public Set getEnvironmentProperties() { if (this.environmentProperties == null) { this.environmentProperties = new OrderedSet(); } return this.environmentProperties = new OrderedSet(this.environmentProperties); }
/** * Add all the elements in the given set that are not already * in this ordered set. */ public boolean addAll(Collection<? extends T> c) { boolean setChanged = false; if (c != null) { for (T o : c) { if (add(o)) { setChanged = true; } } } return setChanged; } }
/** * Construct an ordered set from the given collection. */ public OrderedSet(Collection<T> c) { this(); this.addAll(c); }
/** * Add the given object to the Set if it is not equal (equals()) to * an element already in the set. */ public boolean add(T o) { if (o != null && !this.contains(o)) { return super.add(o); } return false; }
@Override public boolean remove(Object o) { boolean result = super.remove(o); if (getWebBundleDescriptor() != null) { getWebBundleDescriptor().resetUrlPatternToServletNameMap(); } return result; }
/** * Add the given object to the Set if it is not equal (equals()) to * an element already in the set. */ public boolean add(T o) { if (o != null && !this.contains(o)) { return super.add(o); } return false; }
public Set getMessageDestinationReferenceDescriptors() { if( this.messageDestReferences == null ) { this.messageDestReferences = new OrderedSet(); } return this.messageDestReferences = new OrderedSet(this.messageDestReferences); }
/** * Add all the elements in the given set that are not already * in this ordered set. */ public boolean addAll(Collection<? extends T> c) { boolean setChanged = false; if (c != null) { for (T o : c) { if (add(o)) { setChanged = true; } } } return setChanged; } }
/** * Construct an ordered set from the given collection. */ public OrderedSet(Collection<T> c) { this(); this.addAll(c); }
/** * Return the set of references to resources that I have. */ public Set getResourceReferenceDescriptors() { if (this.resourceReferences == null) { this.resourceReferences = new OrderedSet(); } return this.resourceReferences = new OrderedSet(this.resourceReferences); }
@Override public boolean add(String s) { Map<String, String> up2sname = getUrlPatternToServletNameMap(); if (up2sname != null) { String name = getCanonicalName(); String oldName = up2sname.put(s, getCanonicalName()); if (oldName != null && (!oldName.equals(name))) { throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionsameurlpattern", "Servlet [{0}] and Servlet [{1}] have the same url pattern: [{2}]", new Object[] { oldName, name, s })); } } return super.add(s); }
public Set<String> getWelcomeFilesSet() { if (welcomeFiles == null) { welcomeFiles = new OrderedSet<String>(); } return welcomeFiles; }
/** * Returns the Set of my references to Enterprise Beans. */ public Set<EjbReference> getEjbReferenceDescriptors() { if (ejbReferences == null) { ejbReferences = new OrderedSet<EjbReference>(); } return ejbReferences; }
/** * @returns my Set of references to resources. */ public Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors() { if (resourceReferences == null) { resourceReferences = new OrderedSet<ResourceReferenceDescriptor>(); } return resourceReferences; }
/** * Return an Iterable over include coda elements for this group. */ public Set<String> getIncludeCodas() { if (this.includeCodas == null) { this.includeCodas = new OrderedSet<String>(); } return this.includeCodas; }
private Set<InitializationParameter> getInitializationParameterSet() { if (this.initializationParameters == null) { this.initializationParameters = new OrderedSet<InitializationParameter>(); } return initializationParameters; }
public Set getEjbReferenceDescriptors() { if (this.ejbReferences == null) { this.ejbReferences = new OrderedSet(); } return this.ejbReferences = new OrderedSet(this.ejbReferences); }
public Set getResourceReferenceDescriptors() { if (this.resourceReferences == null) { this.resourceReferences = new OrderedSet(); } return this.resourceReferences = new OrderedSet(this.resourceReferences); }
public Set getServiceReferenceDescriptors() { if( this.serviceReferences == null ) { this.serviceReferences = new OrderedSet(); } return this.serviceReferences = new OrderedSet(this.serviceReferences); }
/** * Return the set of resource environment references this ejb declares. */ public Set getResourceEnvReferenceDescriptors() { if (this.resourceEnvReferences == null) { this.resourceEnvReferences = new OrderedSet(); } return this.resourceEnvReferences = new OrderedSet(this.resourceEnvReferences); }