当前位置: 首页>>代码示例>>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;未经允许,请勿转载。