Class MavenMetadata

  • All Implemented Interfaces:
    org.eclipse.aether.metadata.MergeableMetadata, org.eclipse.aether.metadata.Metadata
    Direct Known Subclasses:
    LocalSnapshotMetadata, MavenSnapshotMetadata, VersionsMetadata

    abstract class MavenMetadata
    extends org.eclipse.aether.metadata.AbstractMetadata
    implements org.eclipse.aether.metadata.MergeableMetadata
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.aether.metadata.Metadata

        org.eclipse.aether.metadata.Metadata.Nature
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MavenMetadata​(Metadata metadata, java.io.File file, java.util.Date timestamp)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile()  
      java.util.Map<java.lang.String,​java.lang.String> getProperties()  
      java.lang.String getType()  
      boolean isMerged()  
      void merge​(java.io.File existing, java.io.File result)  
      protected abstract void merge​(Metadata recessive)  
      (package private) static Metadata read​(java.io.File metadataFile)  
      org.eclipse.aether.metadata.Metadata setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)  
      private void write​(java.io.File metadataFile, Metadata metadata)  
      • Methods inherited from class org.eclipse.aether.metadata.AbstractMetadata

        copyProperties, equals, getProperty, hashCode, setFile, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.aether.metadata.Metadata

        getArtifactId, getGroupId, getNature, getProperty, getVersion, setFile
    • Field Detail

      • file

        private final java.io.File file
      • timestamp

        protected final java.util.Date timestamp
      • merged

        private boolean merged
    • Constructor Detail

      • MavenMetadata

        protected MavenMetadata​(Metadata metadata,
                                java.io.File file,
                                java.util.Date timestamp)
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface org.eclipse.aether.metadata.Metadata
      • getFile

        public java.io.File getFile()
        Specified by:
        getFile in interface org.eclipse.aether.metadata.Metadata
      • merge

        public void merge​(java.io.File existing,
                          java.io.File result)
                   throws org.eclipse.aether.RepositoryException
        Specified by:
        merge in interface org.eclipse.aether.metadata.MergeableMetadata
        Throws:
        org.eclipse.aether.RepositoryException
      • isMerged

        public boolean isMerged()
        Specified by:
        isMerged in interface org.eclipse.aether.metadata.MergeableMetadata
      • merge

        protected abstract void merge​(Metadata recessive)
      • read

        static Metadata read​(java.io.File metadataFile)
                      throws org.eclipse.aether.RepositoryException
        Throws:
        org.eclipse.aether.RepositoryException
      • write

        private void write​(java.io.File metadataFile,
                           Metadata metadata)
                    throws org.eclipse.aether.RepositoryException
        Throws:
        org.eclipse.aether.RepositoryException
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Specified by:
        getProperties in interface org.eclipse.aether.metadata.Metadata
      • setProperties

        public org.eclipse.aether.metadata.Metadata setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Specified by:
        setProperties in interface org.eclipse.aether.metadata.Metadata
        Overrides:
        setProperties in class org.eclipse.aether.metadata.AbstractMetadata