congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DefaultIdentifiable.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using it.tidalwave.role.spi.DefaultIdentifiable.<init> (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<init>

Popular methods of DefaultIdentifiable

    Popular in Java

    • Updating database using SQL prepared statement
    • scheduleAtFixedRate (Timer)
    • putExtra (Intent)
    • getSupportFragmentManager (FragmentActivity)
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • Point (java.awt)
      A point representing a location in (x,y) coordinate space, specified in integer precision.
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • 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