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
-
Method Summary
Modifier and TypeMethodDescriptiongetApi()
Gets api.getGit()
Gets git.getHooks()
Gets hooks.Gets importer.getPages()
Gets pages.getWeb()
Gets web.boolean
Is verifiable password authentication boolean.void
Sets api.void
Sets git.void
Sets hooks.void
setImporter
(List<String> importer) Sets importer.void
Sets pages.void
setVerifiablePasswordAuthentication
(boolean verifiablePasswordAuthentication) Sets verifiable password authentication.void
Sets web.
-
Constructor Details
-
GHMetaPublic
public GHMetaPublic()Create default GHMetaPublic instance
-
-
Method Details
-
isVerifiablePasswordAuthentication
public boolean isVerifiablePasswordAuthentication()Description copied from interface:ReadOnlyObjects.GHMetaExample
Is verifiable password authentication boolean.- Specified by:
isVerifiablePasswordAuthentication
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the boolean
-
setVerifiablePasswordAuthentication
public void setVerifiablePasswordAuthentication(boolean verifiablePasswordAuthentication) Sets verifiable password authentication.- Parameters:
verifiablePasswordAuthentication
- the verifiable password authentication
-
getHooks
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets hooks.- Specified by:
getHooks
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the hooks
-
setHooks
Sets hooks.- Parameters:
hooks
- the hooks
-
getGit
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets git.- Specified by:
getGit
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the git
-
setGit
Sets git.- Parameters:
git
- the git
-
getWeb
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets web.- Specified by:
getWeb
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the web
-
setWeb
Sets web.- Parameters:
web
- the web
-
getApi
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets api.- Specified by:
getApi
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the api
-
setApi
Sets api.- Parameters:
api
- the api
-
getPages
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets pages.- Specified by:
getPages
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the pages
-
setPages
Sets pages.- Parameters:
pages
- the pages
-
getImporter
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets importer.- Specified by:
getImporter
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the importer
-
setImporter
Sets importer.- Parameters:
importer
- the importer
-