Tabnine Logo
MapElements
Code IndexAdd Tabnine to your IDE (free)

How to use
MapElements
in
com.mysema.rdfbean.annotations

Best Java code snippets using com.mysema.rdfbean.annotations.MapElements (Showing top 5 results out of 315)

origin: com.mysema.rdf/rdfbean-core

@Nullable
public UID getKeyPredicate() {
  MapElements mapKey = getAnnotation(MapElements.class);
  if (mapKey != null) {
    Predicate predicate = mapKey.key();
    // String parentNs = getParentNs(mapKey, getMember());
    return UID.create(declaringClass.getClassNs(), predicate.ns(), predicate.ln(), null);
  } else {
    return null;
  }
}
origin: com.mysema.rdf/rdfbean-core

} else if (isMap()) {
  MapElements mapKey = getAnnotation(MapElements.class);
  if (mapKey != null && !Void.class.equals(mapKey.keyType())) {
    keyType = mapKey.keyType();
  } else {
    keyType = getUpper(keyType, getGenericClass(genericType, 0, owner, 2));
origin: com.mysema.rdf/rdfbean-core

@Nullable
public UID getValuePredicate() {
  MapElements mapKey = getAnnotation(MapElements.class);
  if (mapKey != null) {
    Predicate predicate = mapKey.value();
    try {
      // String parentNs = getParentNs(mapKey, getMember());
      return UID.create(declaringClass.getClassNs(), predicate.ns(), predicate.ln(), null);
    } catch (IllegalArgumentException e) {
      return null;
    }
  } else {
    return null;
  }
}
origin: com.mysema.rdf/rdfbean-core

@MapElements(key = @Predicate(ln = "firstName"))
Map<String, User> buddiesMapped;
origin: com.mysema.rdf/rdfbean-core

@MapElements(key = @Predicate(ln = "directProperty2"))
public Map<String, SimpleType2> mapProperty;
com.mysema.rdfbean.annotationsMapElements

Most used methods

  • <init>
  • key
  • keyType
  • value

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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