Class CommonFactory

  • Direct Known Subclasses:
    ObjectFactory, ObjectFactory

    public abstract class CommonFactory
    extends java.lang.Object
    Factory for creating the objects used by the repository framework. Instances of this class can be obtained from any of the objects creatable by this class, or by RepoManager.getCommonModule().createLatestFactory(). Primarily a superclass for xjc-generated ObjectFactorys. Most methods shouldn't be needed outside the repository framework.
    • Constructor Detail

      • CommonFactory

        public CommonFactory()
    • Method Detail

      • createRepositoryType

        @NonNull
        public abstract Repository createRepositoryType()
      • createArchiveType

        @NonNull
        public abstract Archive createArchiveType()
      • createLocalPackage

        @NonNull
        public abstract LocalPackageImpl createLocalPackage()
      • createRemotePackage

        @NonNull
        public abstract RemotePackageImpl createRemotePackage()
      • createRevisionType

        @NonNull
        protected abstract RevisionType createRevisionType()
      • createChannelType

        @NonNull
        public abstract Channel createChannelType()
      • createChecksum

        @NonNull
        public Checksum createChecksum​(java.lang.String checksum,
                                       java.lang.String type)
      • createChecksumType

        @NonNull
        protected Checksum createChecksumType()
      • generateRepository

        @NonNull
        public abstract javax.xml.bind.JAXBElement<Repository> generateRepository​(Repository repo)
      • createChannelType

        @NonNull
        public Channel createChannelType​(int id)
        Convenience method to create a Channel with the given numeric id.
      • createLicenseType

        @NonNull
        public License createLicenseType​(java.lang.String value,
                                         java.lang.String id)
        Convenience method to create a license with the given id and value.
      • createLicenseType

        @NonNull
        public abstract License createLicenseType()
      • createDependencyType

        @NonNull
        public abstract Dependency createDependencyType()
      • createDependencyType

        @NonNull
        public Dependency createDependencyType​(@Nullable
                                               Revision minRevision,
                                               @NonNull
                                               java.lang.String path)
        Creates a Dependency with the given minRevision and path.