public abstract class RemoteSource extends java.lang.Object implements RepositorySource
RepositorySource that was created by a RemoteListSourceProvider and superclass
for xjc-generated classes used to parse the sites list xml. Generated classes provide the url and
UI name; the permitted extensions must be set by the provider. If you implement a new site type,
it should extend siteType in repo-sites-common-N.xsd, and thus transitively extend this class.| Constructor and Description |
|---|
RemoteSource() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName() |
java.lang.String |
getFetchError()
Gets the error (if any) encountered when fetching content from this source.
|
java.lang.String |
getName() |
java.util.Collection<SchemaModule<?>> |
getPermittedModules()
Gets the
SchemaModules that are allowed to be used to parse XML from this
source. |
RepositorySourceProvider |
getProvider() |
abstract java.lang.String |
getUrl() |
boolean |
isEnabled()
Currently not implemented.
|
void |
setEnabled(boolean enabled)
Currently not implemented.
|
void |
setFetchError(java.lang.String error)
If an error was encountered loading from this source, it can be set here for display to the
user.
|
void |
setPermittedSchemaModules(java.util.Collection<SchemaModule<?>> modules)
Sets the list of modules allowed to be used when parsing XML fetched from this source.
|
void |
setProvider(RepositorySourceProvider provider) |
void |
setUrl(java.lang.String url) |
public void setPermittedSchemaModules(@NonNull
java.util.Collection<SchemaModule<?>> modules)
@NonNull public java.util.Collection<SchemaModule<?>> getPermittedModules()
RepositorySourceSchemaModules that are allowed to be used to parse XML from this
source.getPermittedModules in interface RepositorySourcepublic boolean isEnabled()
isEnabled in interface RepositorySourcepublic void setEnabled(boolean enabled)
setEnabled in interface RepositorySourceenabled - Whether this source should be enabled or disabled.@NonNull public abstract java.lang.String getUrl()
getUrl in interface RepositorySourcepublic void setUrl(@NonNull
java.lang.String url)
public void setFetchError(@Nullable
java.lang.String error)
RepositorySourcesetFetchError in interface RepositorySource@Nullable public java.lang.String getFetchError()
RepositorySourcegetFetchError in interface RepositorySourcenull if the load was successful.@NonNull public RepositorySourceProvider getProvider()
getProvider in interface RepositorySourcepublic void setProvider(@NonNull
RepositorySourceProvider provider)
@Nullable public java.lang.String getDisplayName()
getDisplayName in interface RepositorySource@Nullable public java.lang.String getName()