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

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

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

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 DefaultSource}, then it is returned unchanged.</li>
 *   <li>Otherwise a new {@code DefaultSource} instance is created using the
 *       {@linkplain #DefaultSource(Source) 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 DefaultSource castOrCopy(final Source object) {
  if (object == null || object instanceof DefaultSource) {
    return (DefaultSource) object;
  }
  return new DefaultSource(object);
}
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 DefaultSource}, then it is returned unchanged.</li>
 *   <li>Otherwise a new {@code DefaultSource} instance is created using the
 *       {@linkplain #DefaultSource(Source) 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 DefaultSource castOrCopy(final Source object) {
  if (object == null || object instanceof DefaultSource) {
    return (DefaultSource) object;
  }
  return new DefaultSource(object);
}
origin: apache/sis

final InternationalString i18n = trim(description);
if (i18n != null) {
  final DefaultSource source = new DefaultSource(description);
  if (level != null || feature != null) {
    DefaultScope scope = new DefaultScope(level);
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

if (value != null) {
  if (lineage == null) lineage = new DefaultLineage();
  addIfAbsent(lineage.getSources(), new DefaultSource(value));
org.apache.sis.metadata.iso.lineageDefaultSource<init>

Javadoc

Creates an initially empty source.

Popular methods of DefaultSource

  • castOrCopy
    Returns a SIS metadata implementation with the values of the given arbitrary implementation. This me
  • checkWritePermission
  • copyCollection
  • getScope
    Return the type and / or extent of the source. This information should be provided if the #getDescri
  • getSourceMetadata
    Returns the references to metadata for the source.
  • getSourceSpatialResolution
    Returns the spatial resolution expressed as a scale factor, an angle or a level of detail.
  • isModifiable
  • nonNullCollection
  • setDescription
    Sets a detailed description of the level of the source data.
  • setProcessedLevel
    Sets the processing level of the source data.
  • setScaleDenominator
    Sets the denominator of the representative fraction on a source map. This method stores the value in
  • setScope
    Sets the type and / or extent of the source.
  • setScaleDenominator,
  • setScope,
  • setSourceExtents,
  • setSourceSpatialResolution,
  • writeCollection

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot 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