public static PropertyData createPropertyData(Object client, String path, String name, String value, byte[] data) { if (client instanceof SVNClientImpl){ return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value, data); } return new PropertyData((SVNClient) client, path, name, value, data); }
/** * @deprecated Use {@link #properties(String, Revision, Revision, * int, String[], ProplistCallback)} * instead. * @since 1.2 */ public PropertyData[] properties(String path, Revision revision, Revision pegRevision) throws ClientException { ProplistCallbackImpl callback = new ProplistCallbackImpl(); properties(path, revision, pegRevision, Depth.empty, null, callback); Map propMap = callback.getProperties(path); if (propMap == null) return new PropertyData[0]; PropertyData[] props = new PropertyData[propMap.size()]; Iterator it = propMap.keySet().iterator(); int i = 0; while (it.hasNext()) { String key = (String) it.next(); props[i] = new PropertyData(path, key, (String) propMap.get(key)); i++; } return props; }
/** * @deprecated Use {@link #properties(String, Revision, Revision, * int, String[], ProplistCallback)} * instead. * @since 1.2 */ public PropertyData[] properties(String path, Revision revision, Revision pegRevision) throws ClientException { ProplistCallbackImpl callback = new ProplistCallbackImpl(); properties(path, revision, pegRevision, Depth.empty, null, callback); Map propMap = callback.getProperties(path); if (propMap == null) return new PropertyData[0]; PropertyData[] props = new PropertyData[propMap.size()]; Iterator it = propMap.keySet().iterator(); int i = 0; while (it.hasNext()) { String key = (String) it.next(); props[i] = new PropertyData(path, key, (String) propMap.get(key)); i++; } return props; }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }