Module org.kohsuke.github.api
Class ReadOnlyObjects.GHMetaPublic
java.lang.Object
org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaPublic
- All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
- Enclosing class:
- ReadOnlyObjects
public static class ReadOnlyObjects.GHMetaPublic
extends Object
implements ReadOnlyObjects.GHMetaExample
This version uses public getters and setters and leaves it up to Jackson how it wants to fill them.
Pro:
- Easy to create
- Not much code
- Minimal annotations
- Exposes public setters for fields that should not be changed, flagged by spotbugs
- Lists modifiable when they should not be changed
- Jackson generally doesn't call the setters, it just sets the fields directly
- Author:
- Paulo Miguel Almeida
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApi()Gets api.getGit()Gets git.getHooks()Gets hooks.Gets importer.getPages()Gets pages.getWeb()Gets web.booleanIs verifiable password authentication boolean.voidSets api.voidSets git.voidSets hooks.voidsetImporter(List<String> importer) Sets importer.voidSets pages.voidsetVerifiablePasswordAuthentication(boolean verifiablePasswordAuthentication) Sets verifiable password authentication.voidSets web.
-
Constructor Details
-
GHMetaPublic
public GHMetaPublic()Create default GHMetaPublic instance
-
-
Method Details
-
getApi
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets api.- Specified by:
getApiin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the api
-
getGit
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets git.- Specified by:
getGitin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the git
-
getHooks
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets hooks.- Specified by:
getHooksin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the hooks
-
getImporter
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets importer.- Specified by:
getImporterin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the importer
-
getPages
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets pages.- Specified by:
getPagesin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the pages
-
getWeb
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets web.- Specified by:
getWebin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the web
-
isVerifiablePasswordAuthentication
public boolean isVerifiablePasswordAuthentication()Description copied from interface:ReadOnlyObjects.GHMetaExampleIs verifiable password authentication boolean.- Specified by:
isVerifiablePasswordAuthenticationin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the boolean
-
setApi
Sets api.- Parameters:
api- the api
-
setGit
Sets git.- Parameters:
git- the git
-
setHooks
Sets hooks.- Parameters:
hooks- the hooks
-
setImporter
Sets importer.- Parameters:
importer- the importer
-
setPages
Sets pages.- Parameters:
pages- the pages
-
setVerifiablePasswordAuthentication
public void setVerifiablePasswordAuthentication(boolean verifiablePasswordAuthentication) Sets verifiable password authentication.- Parameters:
verifiablePasswordAuthentication- the verifiable password authentication
-
setWeb
Sets web.- Parameters:
web- the web
-