Get JsTopicName annotation

@param parameterAnnotations
@param topic
@return
356697
JsTopicName getJsTopicNameAnnotation(Annotation[] parameterAnnotations) {
		for (Annotation parameterAnnotation : parameterAnnotations) {
			if (parameterAnnotation.annotationType().equals(JsTopicName.class)) {
				return (JsTopicName) parameterAnnotation;
			}
		}
		return null;
	}
277568
public String getPageFromAnnotation(SNode node) {
    if (node != null && node.getAnnotations() != null) {

      Set<SLayer> layers = node.getLayers();
      String nodeNamespace = null;

      if(layers != null)
      {
        for (SLayer l : layers) {
          nodeNamespace = l.getName();
        }

        for (SAnnotation anno : node.getAnnotations()) {

          if ((nodeNamespace == null || input.getNamespace() == null)
                  && getPDFPageAnnotationName().equals(anno.getName())) {
            return anno.getValue_STEXT();
          } else if (nodeNamespace.equals(input.getNamespace())
                  && getPDFPageAnnotationName().equals(anno.getName())) {
            return anno.getValue_STEXT();
          }
        }
      }
    }

    return null;
  }
1256369
protected static final boolean looksLikeAnnotationName(final String name) {
        return name.startsWith("org.nmdp") && Character.isUpperCase(name.charAt(name.lastIndexOf(".") + 1));
    }
793479
public List<Annotation> get(AnnotationType type, @NonNull Span span) {
      return annotationSet.select(span, a -> a.isInstance(type) && a.overlaps(span));
   }
1032968
public static String getFullyQualifiedTopicName(
          final String project, final String topic) {
      return String.format("projects/%s/topics/%s", project, topic);
  }
565094
private String getAnnotations(Annotate annotator, String stringFromClient)
      throws JDOMException, IOException {
    // get a breader from the string coming from the client
    BufferedReader clientReader = new BufferedReader(
        new StringReader(stringFromClient));
    KAFDocument kaf = KAFDocument.createFromStream(clientReader);
    KAFDocument.LinguisticProcessor newLp = kaf.addLinguisticProcessor(
        "entities", "ixa-pipe-nerc-" + Files.getNameWithoutExtension(model),
        version + "-" + commit);
    newLp.setBeginTimestamp();
    annotator.annotateNEsToKAF(kaf);
    // get outputFormat
    String kafToString = null;
    if (outputFormat.equalsIgnoreCase("conll03")) {
      kafToString = annotator.annotateNEsToCoNLL2003(kaf);
    } else if (outputFormat.equalsIgnoreCase("conll02")) {
      kafToString = annotator.annotateNEsToCoNLL2002(kaf);
    } else {
      newLp.setEndTimestamp();
      kafToString = kaf.toString();
    }
    return kafToString;
  }
358980
protected Collection loadEvenHandler(String topic) {
		Collection ehs = new ArrayList();
		Collection<String> consumers = (Collection<String>) containerWrapper.lookup(ConsumerLoader.TOPICNAME + topic);
		if (consumers == null || consumers.size() == 0) {
			Debug.logWarning("[Jdonframework]there is no any consumer class annotated with @Consumer(" + topic + ") ", module);
			return ehs;
		}
		for (String consumerName : consumers) {
			DomainEventHandler eh = (DomainEventHandler) containerWrapper.lookup(consumerName);
			ehs.add(eh);
		}

		return ehs;

	}
414304
protected final List<Parameter> getParameters(Type type, List<Annotation> annotations) {
        return getParameters(type, annotations, typesToSkip);
    }
45264
def get_annotation(self, id_):
        """"""
        endpoint = "annotations/{id}".format(id=id_)
        return self._make_request(endpoint)
1081393
@Override
    public SpecTopic getClosestTopic(final SpecTopic topic, final SpecNode callerNode, final boolean checkParentNode) {
        final SpecTopic retValue = super.getClosestTopic(topic, callerNode, checkParentNode);
        if (retValue != null) {
            return retValue;
        } else {
            // Look up the metadata topics
            final ContentSpec contentSpec = getContentSpec();
            for (final Node contentSpecNode : contentSpec.getNodes()) {
                if (contentSpecNode instanceof KeyValueNode && ((KeyValueNode) contentSpecNode).getValue() instanceof SpecTopic) {
                    final SpecTopic childTopic = (SpecTopic) ((KeyValueNode) contentSpecNode).getValue();
                    if (childTopic == topic || childTopic.getId().equals(topic.getId())) {
                        return childTopic;
                    }
                }
            }

            return null;
        }
    }
996271
public JAnnotation getAnnotation(String className)
  {
    JAnnotation []annList = getDeclaredAnnotations();

    for (int i = 0; i < annList.length; i++) {
      if (annList[i].getType().equals(className))
        return annList[i];
    }
    
    return null;
  }
163210
private static Set<String> getAnnotationLevelSet(SDocumentGraph graph,
          String namespace, Class<? extends SNode> type) {
    Set<String> result = new TreeSet<>();

    if (graph != null) {
      List<? extends SNode> nodes;
      // catch most common cases directly
      if (SSpan.class == type) {
        nodes = graph.getSpans();
      } else if (SToken.class == type) {
        nodes = graph.getTokens();
      } else {
        nodes = graph.getNodes();
      }
      if (nodes != null) {
        for (SNode n : nodes) {
          if (type.isAssignableFrom(n.getClass())) {
            for (SLayer layer : n.getLayers()) {
              if (namespace == null || namespace.equals(layer.getName())) {
                for (SAnnotation anno : n.getAnnotations()) {
                  result.add(anno.getQName());
                }
                // we got all annotations of this node, jump to next node
                break;
              } // end if namespace equals layer name
            } // end for each layer
          }
        } // end for each node
      }
    }

    return result;
  }
1061136
@Override
    public Topic createTopic(String topicName) throws JMSRuntimeException {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "createTopic", new Object[] { topicName });

        Topic topic = null;

        try {
            topic = jmsSession.createTopic(topicName);
        } catch (JMSException jmse) {
            throw (JMSRuntimeException) JmsErrorUtils.getJMS2Exception(jmse, JMSRuntimeException.class);
        } finally {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "createTopic", new Object[] { topic });
        }

        return topic;
    }
1302673
public String retrieveNonWildcardStem(String topic)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(
        tc,
        "retrieveNonWildcardStem",
        new Object[] { topic});

    String stem = null;

    int wildMany = topic.indexOf(MatchSpace.SUBTOPIC_DOUBLE_SEPARATOR_STRING);
    int wildOne = topic.indexOf(MatchSpace.SUBTOPIC_MATCHONE_CHAR);

    if( wildOne > -1)
    {
      if(wildMany > wildOne)
        stem = topic.substring(0, wildOne - 1); // Careful need to account for "/"
      else
      {
        if(wildMany > -1)
          stem = topic.substring(0,wildMany);
        else
          stem = topic.substring(0, wildOne - 1); // Careful need to account for "/"
      }
    }
    else
    {
      if(wildMany > -1)
      {
        stem = topic.substring(0,wildMany);
      }
      else
      {
        // No wildcards
        stem = topic;
      }
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "retrieveNonWildcardStem", stem);

    return stem;
  }
716656
public List<String> getAnnotations() {
        AnnotationBuilder result = new AnnotationBuilder();
        result.add(getNotNullAnnotation());
        return result.getAnnotations();
    }
62543
protected List<String> getResourceNamesFromParam(Map<String, String> params) {

        String resourcesParam = "/";
        if (params.containsKey(I_CmsListResourceCollector.PARAM_RESOURCES)) {
            resourcesParam = params.get(I_CmsListResourceCollector.PARAM_RESOURCES);
        }
        if (resourcesParam.length() == 0) {
            return Collections.emptyList();
        }
        return CmsStringUtil.splitAsList(resourcesParam, "#");
    }
1335708
public static String getStaticFixedURLForTopicNode(final ITopicNode topicNode) {
        if (topicNode.getTopicType() == TopicType.REVISION_HISTORY) {
            return "appe-Revision_History";
        } else if (topicNode.getTopicType() == TopicType.LEGAL_NOTICE) {
            return "Legal_Notice";
        } else if (topicNode.getTopicType() == TopicType.AUTHOR_GROUP) {
            return "Author_Group";
        } else if (topicNode.getTopicType() == TopicType.ABSTRACT) {
            return "Abstract";
        } else {
            return null;
        }
    }