Tabnine Logo
DefaultLineage.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.sis.metadata.iso.lineage.DefaultLineage
constructor

Best Java code snippets using org.apache.sis.metadata.iso.lineage.DefaultLineage.<init> (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: apache/sis

/**
 * Creates the lineage object if it does not already exists, then returns it.
 *
 * @return the lineage (never {@code null}).
 * @see #newLineage()
 */
private DefaultLineage lineage() {
  if (lineage == null) {
    lineage = new DefaultLineage();
  }
  return lineage;
}
origin: org.apache.sis.storage/sis-storage

/**
 * Creates the lineage object if it does not already exists, then returns it.
 *
 * @return the lineage (never {@code null}).
 * @see #newLineage()
 */
private DefaultLineage lineage() {
  if (lineage == null) {
    lineage = new DefaultLineage();
  }
  return lineage;
}
origin: org.apache.sis.core/sis-metadata

/**
 * Returns a SIS metadata implementation with the values of the given arbitrary implementation.
 * This method performs the first applicable action in the following choices:
 *
 * <ul>
 *   <li>If the given object is {@code null}, then this method returns {@code null}.</li>
 *   <li>Otherwise if the given object is already an instance of
 *       {@code DefaultLineage}, then it is returned unchanged.</li>
 *   <li>Otherwise a new {@code DefaultLineage} instance is created using the
 *       {@linkplain #DefaultLineage(Lineage) copy constructor}
 *       and returned. Note that this is a <cite>shallow</cite> copy operation, since the other
 *       metadata contained in the given object are not recursively copied.</li>
 * </ul>
 *
 * @param  object  the object to get as a SIS implementation, or {@code null} if none.
 * @return a SIS implementation containing the values of the given object (may be the
 *         given object itself), or {@code null} if the argument was null.
 */
public static DefaultLineage castOrCopy(final Lineage object) {
  if (object == null || object instanceof DefaultLineage) {
    return (DefaultLineage) object;
  }
  return new DefaultLineage(object);
}
origin: apache/sis

/**
 * Returns a SIS metadata implementation with the values of the given arbitrary implementation.
 * This method performs the first applicable action in the following choices:
 *
 * <ul>
 *   <li>If the given object is {@code null}, then this method returns {@code null}.</li>
 *   <li>Otherwise if the given object is already an instance of
 *       {@code DefaultLineage}, then it is returned unchanged.</li>
 *   <li>Otherwise a new {@code DefaultLineage} instance is created using the
 *       {@linkplain #DefaultLineage(Lineage) copy constructor}
 *       and returned. Note that this is a <cite>shallow</cite> copy operation, since the other
 *       metadata contained in the given object are not recursively copied.</li>
 * </ul>
 *
 * @param  object  the object to get as a SIS implementation, or {@code null} if none.
 * @return a SIS implementation containing the values of the given object (may be the
 *         given object itself), or {@code null} if the argument was null.
 */
public static DefaultLineage castOrCopy(final Lineage object) {
  if (object == null || object instanceof DefaultLineage) {
    return (DefaultLineage) object;
  }
  return new DefaultLineage(object);
}
origin: apache/sis

/**
 * Create a lineage to marshal. If {@code extension} is {@code false}, then this method uses
 * only properties defined in ISO 19115-1. If {@code extension} is {@code true}, then this
 * method adds an ISO 19115-2 property.
 */
private static DefaultLineage create(final boolean extension) {
  final DefaultLineage lineage = new DefaultLineage();
  final DefaultSource source = new DefaultSource();
  source.setDescription(new SimpleInternationalString("Description of source data level."));
  lineage.getSources().add(source);
  if (extension) {
    source.setProcessedLevel(new DefaultIdentifier("DummyLevel"));
  }
  return lineage;
}
origin: org.apache.sis.storage/sis-netcdf

String value = stringValue(HISTORY);
if (value != null) {
  lineage = new DefaultLineage();
  lineage.setStatement(new SimpleInternationalString(value));
  if (lineage == null) lineage = new DefaultLineage();
  addIfAbsent(lineage.getSources(), new DefaultSource(value));
org.apache.sis.metadata.iso.lineageDefaultLineage<init>

Javadoc

Constructs an initially empty lineage.

Popular methods of DefaultLineage

  • getSources
    Returns information about the source data used in creating the data specified by the scope.
  • setStatement
    Sets the general explanation of the data producer’s knowledge about the lineage of a dataset.
  • castOrCopy
    Returns a SIS metadata implementation with the values of the given arbitrary implementation. This me
  • checkWritePermission
  • copyCollection
  • getAdditionalDocumentation
    Returns additional documentation.
  • getProcessSteps
    Returns the information about about events in the life of a resource specified by the scope.
  • getScope
    Returns the type of resource and / or extents to which the lineage information applies.
  • getStatement
    Returns the general explanation of the data producer's knowledge about the lineage of a dataset. Can
  • nonNullCollection
  • writeCollection
  • writeCollection

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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