Codota Logo
MessageDestinationRef.getLink
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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.commonMessageDestinationRefgetLink

Javadoc

Returns the value of the 'Link' attribute.

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

Popular methods of MessageDestinationRef

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

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now