/** * Creates a new <code>SVNProperties</code> object copying the given one. * * @param properties * an initializer */ public SVNProperties(SVNProperties properties) { myProperties = new SVNHashMap(properties.myProperties); }
private Map getProperties() { if (myOutgoingProperties == null) { myOutgoingProperties = new SVNHashMap(); } return myOutgoingProperties; }
public DirectoryInfo(String path, String cmpPath, long cmpRev, DirectoryInfo parent) { myFullPath = path; myParentInfo = parent; myComparePath = cmpPath; myCompareRevision = cmpRev; myDeletedEntries = new SVNHashMap(); myIsWrittenOut = false; } }
protected Map getRevertPropertiesStorage(boolean create) { if (myRevertProperties == null && create) { myRevertProperties = new SVNHashMap(); } return myRevertProperties; }
public Map getIncomingProperties() { if (myIncomingProperties == null) { myIncomingProperties = new SVNHashMap(); } return myIncomingProperties; }
public SVNCommitMediator(Map commitItems) { myTmpFiles = new ArrayList(); myWCPropsMap = new SVNHashMap(); myCommitItems = commitItems; }
public void addOldExternal(String path, String oldValue) { if (myOldExternals == null) { myOldExternals = new SVNHashMap(); } myOldExternals.put(path, oldValue); }
public void addNewExternal(String path, String newValue) { if (myNewExternals == null) { myNewExternals = new SVNHashMap(); } myNewExternals.put(path, newValue); }
protected BasicDAVHandler() { myPrefixesMap = new SVNHashMap(); myNamespacesCollection = new LinkedList(); myParent = new Stack(); }
public Map getChildrenFiles(File parent) { File[] children = SVNFileListUtil.listFiles(parent); if (children != null) { Map map = new SVNHashMap(); for (int i = 0; i < children.length; i++) { map.put(children[i].getName(), children[i]); } return map; } return Collections.EMPTY_MAP; } }
public SVNStatusReporter(SVNRepository repos, ISVNReporterBaton baton, SVNStatusEditor editor) { myBaton = baton; myRepository = repos; myCommonAncestorLocation = repos.getLocation(); myEditor = editor; myLocks = new SVNHashMap(); }
public DAVCommitEditor(DAVRepository repository, DAVConnection connection, SVNProperties revProps, ISVNWorkspaceMediator mediator, Runnable closeCallback) { myConnection = connection; myLocation = repository.getLocation(); myRepository = repository; myCloseCallback = closeCallback; myCommitMediator = mediator; myDirsStack = new Stack(); myPathsMap = new SVNHashMap(); myFilesMap = new SVNHashMap(); myRevProps = revProps != null ? revProps : new SVNProperties(); myDeletedPaths = new HashSet<String>(); }
public void addOldExternal(File path, String oldValue) { if (oldExternals == null) { oldExternals = new SVNHashMap(); } oldExternals.put(path, oldValue); }
public void addDepth(File localAbsPath, SVNDepth depth) { if (depths == null) { depths = new SVNHashMap(); } depths.put(localAbsPath, depth); }
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { myMap = new SVNHashMap(); int size = s.readInt(); for (int i = 0; i < size; i++) { Object o = s.readObject(); myMap.put(o, OBJECT); } } }
public static StringBuffer openCDataTag(String prefix, String tagName, String cdata, String attr, String value, boolean escapeQuotes, boolean encodeCDATA, StringBuffer target) { Map attributes = new SVNHashMap(); attributes.put(attr, value); return openCDataTag(prefix, tagName, cdata, attributes, escapeQuotes, encodeCDATA, target); }
public static StringBuffer openXMLTag(String prefix, String tagName, int style, String attr, String value, StringBuffer target) { Map attributes = new SVNHashMap(); attributes.put(attr, value); return openXMLTag(prefix, tagName, style, attributes, target); }
protected SVNHashMap createEntryHashMap(Map map) { if (getObjectsPool() != null) { return new SVNEntryHashMap(map, getObjectsPool()); } return new SVNHashMap(map); }
public SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = getLockTokens() == null ? null : new SVNHashMap(getLockTokens()); SVNCommitItem[] filteredItems = filterSkippedItemsAndLockTokens(items, lockTokens); return new SVNCommitPacket(null, filteredItems, lockTokens); }
private SVNProperties getTreeConflictCreationAttributes(SVNAdminArea adminArea, SVNTreeConflictDescription treeConflict) throws SVNException { Map conflicts = new SVNHashMap(); conflicts.put(treeConflict.getPath(), treeConflict); String conflictData = SVNTreeConflictUtil.getTreeConflictData(conflicts); SVNProperties command = new SVNProperties(); command.put(SVNLog.NAME_ATTR, adminArea.getThisDirName()); command.put(SVNLog.DATA_ATTR, conflictData); return command; }