當前位置: 首頁>>代碼示例>>Java>>正文


Java Info類代碼示例

本文整理匯總了Java中org.apache.subversion.javahl.types.Info的典型用法代碼示例。如果您正苦於以下問題:Java Info類的具體用法?Java Info怎麽用?Java Info使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Info類屬於org.apache.subversion.javahl.types包,在下文中一共展示了Info類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: convertScheduleKind

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
public static SVNScheduleKind convertScheduleKind(Info.ScheduleKind kind) {
	if (kind == null) {
		return null;
	}
    switch (kind) {
    	case normal:
    		return SVNScheduleKind.NORMAL;
    	case delete:
    		return SVNScheduleKind.DELETE;
    	case add:
    		return SVNScheduleKind.ADD;
    	case replace:
    		return SVNScheduleKind.REPLACE;        	
    	default : {
    		log.severe("unknown schedule kind :"+kind);
    		return SVNScheduleKind.NORMAL;
    	}
    }
}
 
開發者ID:subclipse,項目名稱:svnclientadapter,代碼行數:20,代碼來源:JhlConverter.java

示例2: JhlInfo2

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
/**
 * Constructor
 * @param file
 * @param info
 */
public JhlInfo2(String path, Info info) {
       super();
       if (path == null)
       	file = null;
       else
       	file = new File(path);
       this.info = info;
}
 
開發者ID:subclipse,項目名稱:svnclientadapter,代碼行數:14,代碼來源:JhlInfo2.java

示例3: convert

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
public static SVNInfo convert(Info info) throws SVNException {
  // !! prop time is NOT filled
  final Set<ConflictDescriptor> conflicts = info.getConflicts();
  String oldConflict = null;
  String newConflict = null;
  String wrkConflict = null;
  String propConflict = null;
  SVNTreeConflictDescription description = null;
  if (conflicts != null && ! conflicts.isEmpty()) {
    for (ConflictDescriptor conflict : conflicts) {
      if (ConflictDescriptor.Kind.property.equals(conflict.getKind())) {
        propConflict = conflict.getPropertyName();
      } else if (ConflictDescriptor.Kind.tree.equals(conflict.getKind())) {
        description = createTreeConflict(conflict);
      } else {
        oldConflict = conflict.getBasePath();
        newConflict = conflict.getTheirPath();
        wrkConflict = conflict.getMyPath();
      }
    }
  }

  return new IdeaSVNInfo(new File(info.getPath()), url(info.getUrl()), url(info.getReposRootUrl()),
                     info.getRev(), NodeKindConvertor.convert(info.getKind()), info.getReposUUID(), info.getLastChangedRev(),
                     info.getLastChangedDate(), info.getLastChangedAuthor(), convertSchedule(info.getSchedule()),
                     url(info.getCopyFromUrl()), info.getCopyFromRev(), info.getTextTime(), null,
                     checksum(info), oldConflict, newConflict, wrkConflict, propConflict, null,
                     DepthConvertor.convert(info.getDepth()), info.getChangelistName(), info.getWorkingSize(), description);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:30,代碼來源:InfoConvertor.java

示例4: convertSchedule

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
public static String convertSchedule(Info.ScheduleKind schedule) {
  if (Info.ScheduleKind.normal.equals(schedule)) {
    return "normal";
  } else if (Info.ScheduleKind.add.equals(schedule)) {
    return SVNProperty.SCHEDULE_ADD;
  } else if (Info.ScheduleKind.delete.equals(schedule)) {
    return SVNProperty.SCHEDULE_DELETE;
  } else if (Info.ScheduleKind.replace.equals(schedule)) {
    return SVNProperty.SCHEDULE_REPLACE;
  }
  return "normal";
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:13,代碼來源:InfoConvertor.java

示例5: create

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
public static InfoCallback create(final ISVNInfoHandler callback, final Consumer<SVNException> exceptionConsumer) {
  return new InfoCallback() {
    @Override
    public void singleInfo(Info info) {
      if (callback == null) return;
      try {
        callback.handleInfo(InfoConvertor.convert(info));
      }
      catch (SVNException e) {
        exceptionConsumer.consume(e);
      }
    }
  };
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:15,代碼來源:InfoCallbackConvertor.java

示例6: JhlInfo

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
/**
 * Constructor
 * @param file
 * @param info
 */
public JhlInfo(File file, Info info) {
       super();
       this.file = file;
       this.info = info;
}
 
開發者ID:subclipse,項目名稱:svnclientadapter,代碼行數:11,代碼來源:JhlInfo.java

示例7: singleInfo

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
public void singleInfo(Info info) {
	items.add(new JhlInfo2(info.getPath(), info));
}
 
開發者ID:subclipse,項目名稱:svnclientadapter,代碼行數:4,代碼來源:JhlInfoCallback.java

示例8: checksum

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
@Nullable
private static String checksum(Info info) {
  return info.getChecksum() == null ? null : new String(info.getChecksum().getDigest());
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:5,代碼來源:InfoConvertor.java

示例9: singleInfo

import org.apache.subversion.javahl.types.Info; //導入依賴的package包/類
/**
 * the method will be called for every line in a file.
 * @param info      the Info2 object
 */
public void singleInfo(Info info);
 
開發者ID:apicloudcom,項目名稱:APICloud-Studio,代碼行數:6,代碼來源:InfoCallback.java


注:本文中的org.apache.subversion.javahl.types.Info類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。