Codota Logo
DefaultSource.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
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 post requests using okhttp
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now