You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RemoteHelperCapability.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. package org.eclipse.jgit.integrate.remotehelper;
  2. public class RemoteHelperCapability {
  3. public static final RemoteHelperCapability CONNECT = new RemoteHelperCapability("connect");
  4. public static final RemoteHelperCapability PUSH = new RemoteHelperCapability("push");
  5. public static final RemoteHelperCapability EXPORT = new RemoteHelperCapability("export");
  6. public static final RemoteHelperCapability FETCH = new RemoteHelperCapability("fetch");
  7. public static final RemoteHelperCapability IMPORT = new RemoteHelperCapability("import");
  8. public static final RemoteHelperCapability OPTION = new RemoteHelperCapability("option");
  9. public static final RemoteHelperCapability BIDI_IMPORT = new RemoteHelperCapability("bidi-import");
  10. private final String name;
  11. private final String data;
  12. public RemoteHelperCapability(String name) {
  13. this(name, null);
  14. }
  15. public RemoteHelperCapability(String name, String data) {
  16. this.name = name;
  17. this.data = data;
  18. }
  19. public String getName() {
  20. return name;
  21. }
  22. public String getData() {
  23. return data;
  24. }
  25. public boolean hasData() {
  26. return data != null;
  27. }
  28. }