本文整理汇总了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;
}
}
}
示例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;
}
示例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);
}
示例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";
}
示例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);
}
}
};
}
示例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;
}
示例7: singleInfo
import org.apache.subversion.javahl.types.Info; //导入依赖的package包/类
public void singleInfo(Info info) {
items.add(new JhlInfo2(info.getPath(), info));
}
示例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());
}
示例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);