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

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

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

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);
    }
  }    
}

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$
}
org.eclipse.jst.j2ee.commonMessageDestinationRef

Javadoc

A representation of the model object 'Message Destination Ref'.

Most used methods

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Sublime Text for Python
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