Class Repository

  • Direct Known Subclasses:
    RepositoryType, RepositoryType

    public abstract class Repository
    extends java.lang.Object
    Parsed representation of a repository xml file, including packages and licenses. Primarily stubs to be overridden by xjc-generated classes.
    • Constructor Detail

      • Repository

        public Repository()
    • Method Detail

      • getLicense

        @NonNull
        public abstract java.util.List<License> getLicense()
        Returns:
        The Licenses included in this repository. In general licenses should be obtained from RepoPackages, not directly from the repository (as they might not even apply to any packages.
      • addLicense

        public void addLicense​(@NonNull
                               License l)
        Convenience method to add a License to this repository.
      • getChannel

        @NonNull
        public abstract java.util.List<Channel> getChannel()
        Returns:
        The Channels included in this repository. In general licenses should be obtained from RepoPackages, not directly from the repository (as they might not even apply to any packages.
      • addChannel

        public void addChannel​(@NonNull
                               Channel c)
        Convenience method to add a Channel to this repository.
      • createFactory

        @NonNull
        public abstract CommonFactory createFactory()
      • getRemotePackage

        @NonNull
        public java.util.List<RemotePackageImpl> getRemotePackage()
      • setLocalPackage

        public void setLocalPackage​(@Nullable
                                    LocalPackageImpl p)
      • getLocalPackage

        @Nullable
        public LocalPackage getLocalPackage()