congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MessageDestinationRef.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.eclipse.jst.j2ee.common.MessageDestinationRef

Best Java code snippets using org.eclipse.jst.j2ee.common.MessageDestinationRef.getName (Showing top 3 results out of 315)

origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
 * -->
 * 
 * @generated
 */
public String getText(Object object) {
  String label = ((MessageDestinationRef) object).getName();
  return CommonEditResourceHandler.getString("MessageDestinationRefItemProvider_UI_0") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$, $NON-NLS-2$
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * @param allRefs
 * @param ejbRefs
 */
protected void validateDuplicateMessageDestRefs(Set allRefs, List messageDestRefs) {
  if (!messageDestRefs.isEmpty()) {
    MessageDestinationRef firstRef = (MessageDestinationRef)(messageDestRefs.get(0));
  if(!(firstRef.eContainer() instanceof EnterpriseBean))
    cleanUpSubTaskMessages(firstRef);
  for (int refNo = 0; refNo < messageDestRefs.size(); refNo++) {
    MessageDestinationRef ref = (MessageDestinationRef) (messageDestRefs.get(refNo));
    String refName = ref.getName();
    String[] parms = new String[1];
    parms[0] = refName;
    if (!(allRefs.add(refName)))
     addError(EREF_CATEGORY, ERROR_EAR_DUPLICATE_MESSSAGEDESTINATIONREF, parms,ref, MESSAGE_REF_GROUP_NAME);
   }
  }
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * 
 */
private void validateMessageDestinationRefs(ModuleRef moduleRef) {
  List destinationsRefs = getMessageDestinationRefs(moduleRef);
  clearUpSubTaskMessageDestinationMessages(moduleRef,destinationsRefs);
  for (int refNo = 0; refNo < destinationsRefs.size(); refNo++) {
    MessageDestinationRef ref = (MessageDestinationRef) (destinationsRefs.get(refNo));
    String link =  ref.getLink() ;
    if (link == null) continue; // dont validate if the link is null
    if ( link.length()== 0) { // empty link is an error
      String[] params = new String[3];
      params[0] = ref.getName();
      params[1] = moduleRef.getUri();
      params[2] = earFile.getName();
      
      addError(EREF_CATEGORY, ERROR_EAR_MISSING_EMPTY_MESSSAGEDESTINATION, params,ref, MESSAGE_DESTINATION_REF_GROUP_NAME);
    } else if (!isExistMessageDestinationLink(link, moduleRef)) {
      String[] params = new String[4];
      params[0] = link;
      params[1] = ref.getName();
      params[2] = moduleRef.getUri();
      params[3] = earFile.getName();
      
      addError(EREF_CATEGORY, ERROR_EAR_MISSING_MESSSAGEDESTINATION, params,ref, MESSAGE_DESTINATION_REF_GROUP_NAME);
    }
  }    
}

org.eclipse.jst.j2ee.commonMessageDestinationRefgetName

Javadoc

Returns the value of the 'Name' attribute.

If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...

Popular methods of MessageDestinationRef

  • eContainer
  • getLink
    Returns the value of the 'Link' attribute. If the meaning of the 'Link' attribute isn't clear, there

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Reference (javax.naming)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now