|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.repository.api.RemoteSource
public abstract class RemoteSource
A 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 Summary | |
|---|---|
RemoteSource()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteSource()
| Method Detail |
|---|
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 RepositorySource
public void setUrl(@NonNull
java.lang.String url)
public void setFetchError(@Nullable
java.lang.String error)
RepositorySource
setFetchError in interface RepositorySource@Nullable public java.lang.String getFetchError()
RepositorySource
getFetchError in interface RepositorySourcenull if the load was successful.@NonNull public RepositorySourceProvider getProvider()
getProvider in interface RepositorySource
public void setProvider(@NonNull
RepositorySourceProvider provider)
@Nullable public java.lang.String getDisplayName()
getDisplayName in interface RepositorySource@Nullable public java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||