Class ILcdModelReferenceDecoder.ModelReferenceWithSource

java.lang.Object
com.luciad.model.ILcdModelReferenceDecoder.ModelReferenceWithSource
Enclosing interface:
ILcdModelReferenceDecoder

public static class ILcdModelReferenceDecoder.ModelReferenceWithSource extends Object
A model reference paired with the source file from which it was decoded.
Since:
2022.0
  • Constructor Details

    • ModelReferenceWithSource

      public ModelReferenceWithSource(ILcdModelReference aModelReference)
      Creates a new model reference with an empty source, indicating that it is unknown or does not exist.
      Parameters:
      aModelReference - the model reference.
    • ModelReferenceWithSource

      public ModelReferenceWithSource(ILcdModelReference aModelReference, TLcdModelMetadata.Source aSource)
      Creates a new model reference with source.
      Parameters:
      aModelReference - the model reference.
      aSource - the source file from which the model reference was decoded, or null if it is unknown or does not exist.
  • Method Details

    • getModelReference

      public ILcdModelReference getModelReference()
      Returns the model reference.
      Returns:
      the model reference.
    • getSource

      public Optional<TLcdModelMetadata.Source> getSource()
      Returns the source file from which the model reference was decoded, or an empty optional, if the source is unknown or does not exist.
      Returns:
      the source file from which the model reference was decoded, or an empty optional if the source is unknown or does not exist.