Class ReadOnlyObjects.GHMetaPackage
- java.lang.Object
-
- org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaPackage
-
- All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
- Enclosing class:
- ReadOnlyObjects
public static class ReadOnlyObjects.GHMetaPackage extends Object implements ReadOnlyObjects.GHMetaExample
This version uses public getters and shows that package or private setters both can be used by jackson. You can check this by running in debug and setting break points in the setters.Pro:
- Easy to create
- Not much code
- Some annotations
- Exposes some package setters for fields that should not be changed, better than public
- Lists modifiable when they should not be changed
- Author:
- Liam Newman
- See Also:
GHMeta
-
-
Constructor Summary
Constructors Constructor Description GHMetaPackage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getApi()Gets api.List<String>getGit()Gets git.List<String>getHooks()Gets hooks.List<String>getImporter()MissingJsonPropertyor having it on the field will cause Jackson to ignore getters and setters.List<String>getPages()Gets pages.List<String>getWeb()Gets web.booleanisVerifiablePasswordAuthentication()Is verifiable password authentication boolean.
-
-
-
Method Detail
-
isVerifiablePasswordAuthentication
public boolean isVerifiablePasswordAuthentication()
Description copied from interface:ReadOnlyObjects.GHMetaExampleIs verifiable password authentication boolean.- Specified by:
isVerifiablePasswordAuthenticationin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the boolean
-
getHooks
public List<String> getHooks()
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets hooks.- Specified by:
getHooksin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the hooks
-
getGit
public List<String> getGit()
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets git.- Specified by:
getGitin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the git
-
getWeb
public List<String> getWeb()
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets web.- Specified by:
getWebin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the web
-
getApi
public List<String> getApi()
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets api.- Specified by:
getApiin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the api
-
getPages
public List<String> getPages()
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets pages.- Specified by:
getPagesin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the pages
-
getImporter
public List<String> getImporter()
MissingJsonPropertyor having it on the field will cause Jackson to ignore getters and setters.- Specified by:
getImporterin interfaceReadOnlyObjects.GHMetaExample- Returns:
- list of importer addresses
-
-