Tabnine Logo
DefaultDistribution.setDistributors
Code IndexAdd Tabnine to your IDE (free)

How to use
setDistributors
method
in
org.apache.sis.metadata.iso.distribution.DefaultDistribution

Best Java code snippets using org.apache.sis.metadata.iso.distribution.DefaultDistribution.setDistributors (Showing top 2 results out of 315)

origin: Geomatys/geotoolkit

/**
 * Creates the metadata object corresponding to the {@link #JSON} string.
 */
static DefaultMetadata createMetadata() {
  final AbstractIdentification identification = new AbstractIdentification();
  identification.setCitation(new DefaultCitation("Data \"title\""));
  identification.setExtents(singleton(new DefaultExtent(null,
      new DefaultGeographicBoundingBox(-11.4865013, -4.615912, 43.165467, 49.9990223), null, null)));
  final DefaultDistribution distribution = new DefaultDistribution();
  distribution.setDistributors(asList(
      new DefaultDistributor(new DefaultResponsibility(Role.AUTHOR, null, null)),
      new DefaultDistributor(new DefaultResponsibility(Role.COLLABORATOR, null, null))));
  final DefaultMetadata metadata = new DefaultMetadata();
  metadata.setFileIdentifier("An archive");
  metadata.setLanguage(Locale.ENGLISH);
  metadata.setCharacterSets(singleton(StandardCharsets.UTF_8));
  metadata.setMetadataStandardName("ISO19115");
  metadata.setMetadataStandardVersion("2003/Cor.1:2006");
  metadata.setIdentificationInfo(singleton(identification));
  metadata.setDistributionInfo(singleton(distribution));
  return metadata;
}
origin: apache/sis

final DefaultDistribution distributionInfo = new DefaultDistribution();
distributor.setRole(Role.DISTRIBUTOR);
distributionInfo.setDistributors(singleton(new DefaultDistributor(distributor)));
org.apache.sis.metadata.iso.distributionDefaultDistributionsetDistributors

Javadoc

Sets information about the distributor.

Popular methods of DefaultDistribution

  • <init>
    Constructs a new instance initialized with the values from the specified metadata object. This is a
  • castOrCopy
    Returns a SIS metadata implementation with the values of the given arbitrary implementation. This me
  • checkWritePermission
  • copyCollection
  • getDescription
    Returns a brief description of a set of distribution options.
  • getDistributors
    Provides information about the distributor.
  • nonNullCollection
  • setDistributionFormats
    Sets a description of the format of the data to be distributed.
  • setTransferOptions
    Sets information about technical means and media by which a resource is obtained from the distributo
  • writeCollection

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • 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 WebStorm
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