Module org.kohsuke.github.api
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:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GHMetaPackage
public GHMetaPackage()Create default GHMetaPackage 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
-
getHooks
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets hooks.- Specified by:
getHooks
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the hooks
-
getGit
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets git.- Specified by:
getGit
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the git
-
getWeb
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets web.- Specified by:
getWeb
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the web
-
getApi
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets api.- Specified by:
getApi
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the api
-
getPages
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets pages.- Specified by:
getPages
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the pages
-
getImporter
MissingJsonProperty
or having it on the field will cause Jackson to ignore getters and setters.- Specified by:
getImporter
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- list of importer addresses
-