/** * @return the display name */ public String getDisplayName() { return super.getName(); }
/** * @return the display name */ public String getDisplayName() { return getName(); }
/** * get display name. */ public String getDisplayName() { // bug#4745178 other code requires the // display name to be localized. return super.getName(); }
/** * Generate the name of an environment dependency in the java: * namespace. This is the lookup string used by a component to access * the dependency. */ private String descriptorToLogicalJndiName(Descriptor descriptor) { // If no java: prefix is specified, default to component scope. String rawName = descriptor.getName(); return (rawName.startsWith(JAVA_COLON)) ? rawName : JAVA_COMP_ENV_STRING + rawName; }
/** * Returns a formatted version of me as a String. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Field: ").append(super.getName()).append("@").append(super.getDescription()); }
/** * Returns true if I have an ejb descriptor by that name. */ public boolean hasEjbByName(String name) { for (Iterator itr = this.getEjbs().iterator(); itr.hasNext();) { Descriptor next = (Descriptor) itr.next(); if (next.getName().equals(name)) { return true; } } return false; }
private boolean dependencyAppliesToScope(Descriptor descriptor, ScopeType scope) { String name = descriptor.getName(); return dependencyAppliesToScope(name, scope); }
/** * Returns String based on the trial name that is guaramteed to be different * from any of the strings returnsed by the getName() call in any of the Descriptor objects in the Set supplied. * * @param trialName the suggested name * @param descriptors The Set of Descriptor objects to whose name attribute will not be the same as the return * @return the unique String */ public static String createUniqueNameAmongstNamedDescriptors(String trialName, Set<? extends Descriptor> descriptors) { Vector<String> v = new Vector<String>(); for (Descriptor next : descriptors) { v.addElement(next.getName()); } return createUniqueNameAmongst(trialName, v); }
/** ** Returns a String representation of this environment property. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Env-Prop: ").append(super.getName()).append("@"); printInjectableResourceInfo(toStringBuffer); toStringBuffer.append("@").append(this.getType()).append("@").append(this.getValue()).append("@").append("@").append(super.getDescription()); }
/** * write the common descriptor info to a DOM tree and return it * * @param parent node for the DOM tree * @param the descriptor to write */ protected void writeCommonHeaderEjbDescriptor(Node ejbNode, Descriptor descriptor) { EjbDescriptor ejbDescriptor = (EjbDescriptor)descriptor; appendTextChild(ejbNode, EjbTagNames.EJB_NAME, descriptor.getName()); appendTextChild(ejbNode, TagNames.MAPPED_NAME, ejbDescriptor.getMappedName()); }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (EjbTagNames.QUERY_RESULT_TYPE_MAPPING.equals(element.getQName())) { if (EjbTagNames.QUERY_REMOTE_TYPE_MAPPING.equals(value)) { descriptor.setHasRemoteReturnTypeMapping(); } else if (EjbTagNames.QUERY_LOCAL_TYPE_MAPPING.equals(value)) { descriptor.setHasLocalReturnTypeMapping(); } else { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[] {((Descriptor) getParentNode().getDescriptor()).getName() , value}); } } else { super.setElementValue(element, value); } }
"CMP bean [{0}], primary key class [{1}] has " + "public non-persistent field(s) [{2}].", new Object[] {getParentDescriptor().getName(), primaryKeyClassName, nonPersFieldsInPK.toString()}));