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

How to use
DefaultIdentifiable
in
it.tidalwave.role.spi

Best Java code snippets using it.tidalwave.role.spi.DefaultIdentifiable (Showing top 9 results out of 315)

origin: it.tidalwave.bluebill/it-tidalwave-semantic-aux

 @Nonnull
 public static GenericEntity namedEntity (final @Nonnull Id id, final @Nonnull String displayName)
  {
   return new GenericEntity(new DefaultIdentifiable(id),
                new DefaultDisplayable(displayName, "GenericEntity"));
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-taxonomy-mobile

        final @Nullable SimpleTaxon parent)
super(new Object[]{ new DefaultIdentifiable(id) }); 
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-taxonomy-elmo

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Override @Nonnull
public <T> T as (final @Nonnull Class<T> clazz)
 {
  if (Exporter.class.equals(clazz))
   {
    return clazz.cast(new ElmoExporter(repository));
   }
  if (Identifiable.class.equals(clazz))
   {
    final Id id = new Id(entity.getQName().getNamespaceURI() + entity.getQName().getLocalPart());
    return clazz.cast(new DefaultIdentifiable(id));
   }
  return super.as(clazz);
 }
origin: it.tidalwave.bluebill/it-tidalwave-observation-simple-rdf

 @Override @Nonnull
 public As unmarshal (final @Nonnull List<Statement> statements, final @Nonnull Context context)
  {
   // TODO: what about retrieving the observationSet and calling findOrCreate(?)
   final List<Object> capabilities = new ArrayList<Object>();
   capabilities.add(new DefaultIdentifiable(Converter.valueToId(statements.get(0).getSubject())));
   try
    {
     final String displayName = findStatementWithPredicate(statements, ObservationVocabulary.RDFS_LABEL).getObject().stringValue();
     capabilities.add(new DefaultDisplayable(displayName, "SimpleObservable"));
    }
   catch (NotFoundException e)
    {
     // ok. no Displayable
    }
   return new SimpleObservable(capabilities.toArray());
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-observation-simple-rdf

 @Override @Nonnull
 public As unmarshal (final @Nonnull List<Statement> statements, final @Nonnull Context context)
  {
   // TODO: what about retrieving the observationSet and calling findOrCreate(?)
   final List<Object> capabilities = new ArrayList<Object>();
   capabilities.add(new DefaultIdentifiable(Converter.valueToId(statements.get(0).getSubject())));
   try
    {
     final String displayName = findStatementWithPredicate(statements, ObservationVocabulary.RDFS_LABEL).getObject().stringValue();
     capabilities.add(new DefaultDisplayable(displayName, "SimpleSource"));
    }
   catch (NotFoundException e)
    {
     // ok. no Displayable
    }
   addCapabilities(capabilities, statements, ObservationVocabulary.FOAF_HOME_PAGE);
   return new SimpleSource(capabilities.toArray());
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-taxonomy-mobile

final JSONObject rootObject = new JSONObject(string);
final JSONObject jsonTaxonomy = rootObject.getJSONObject("Taxonomy");
final SimpleTaxonomy taxonomy = new SimpleTaxonomy(new DefaultIdentifiable(id), new DefaultDisplayable(jsonTaxonomy.getString("name")));
scan(taxonomy, null, jsonTaxonomy, 0);
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-taxonomy-mobile

instanceCapabilities.add(new DefaultIdentifiable(id));
origin: it.tidalwave.bluebill/it-tidalwave-observation-simple-rdf

final Set<ObservationItem> observationItems = new HashSet<ObservationItem>();
final List<Object> extras = new ArrayList<Object>();
extras.add(new DefaultIdentifiable(Converter.valueToId(statements.get(0).getSubject())));
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-factsheet-xenocanto

final Source xenoCanto = new SimpleSource(new DefaultIdentifiable(new Id("http://www.xeno-canto.org")),
                     new DefaultDisplayable("xeno-canto", ""),
                     new Type(ObservationVocabulary.FOAF_ORGANIZATION),
                     new Property<String>(ObservationVocabulary.FOAF_HOME_PAGE, "http://www.xeno-canto.org"));
final Observable species = new SimpleObservable(new DefaultIdentifiable(taxonId),
                        new DefaultDisplayable(displayName, ""));
it.tidalwave.role.spiDefaultIdentifiable

Javadoc

A default implementation of Identifiable which wraps a given id.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
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