/** * Returns {@link org.tmatesoft.svn.core.SVNDepth} by string value. * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ private static SVNDepth getSvnDepth(String name) { return SVNDepth.fromString(name); }
/** * Returns {@link org.tmatesoft.svn.core.SVNDepth} by string value. * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ protected static SVNDepth getSvnDepth(String name) { return SVNDepth.fromString(name); }
public static SVNDepth parseDepth(String depthStr) { SVNDepth d = null; if (depthStr != null) { d = SVNDepth.fromString(depthStr); } if (d == null) { d = SVNDepth.UNKNOWN; } return d; }
/** * Returns {@link org.tmatesoft.svn.core.SVNDepth} by string value. * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ protected static SVNDepth getSvnDepth(String name) { return SVNDepth.fromString(name); }
public SVNDepth getDepth() { String depthString = (String) myAttributes.get(SVNProperty.DEPTH); return SVNDepth.fromString(depthString); }
public SVNDepth getDepth() { String depthString = (String) myAttributes.get(SVNProperty.DEPTH); return SVNDepth.fromString(depthString); }
/** * Returns {@link org.tmatesoft.svn.core.SVNDepth} by string value. * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. * * @deprecated as of 2.10 * Use SubversionSCM.ModuleLocation.getSVNDepthFor* functions to correctly interpret * module location depth options or SVNDepth.fromString directly if you've taken the * depth from another source. */ @Deprecated protected static SVNDepth getSvnDepth(String name) { return SVNDepth.fromString(name); }
boolean isSubDir = !isThisDir && SVNProperty.KIND_DIR.equals(entryAttrs.get(SVNProperty.KIND)); String depthStr = (String) entryAttrs.get(SVNProperty.DEPTH); SVNDepth depth = SVNDepth.fromString(depthStr); if ((isSubDir && depth != SVNDepth.EXCLUDE) || depth == SVNDepth.INFINITY) { emptyFields++;
boolean isSubDir = !isThisDir && SVNProperty.KIND_DIR.equals(entryAttrs.get(SVNProperty.KIND)); String depthStr = (String) entryAttrs.get(SVNProperty.DEPTH); SVNDepth depth = SVNDepth.fromString(depthStr); if ((isSubDir && depth != SVNDepth.EXCLUDE) || depth == SVNDepth.INFINITY) { emptyFields++;
protected void handleAttributes(DAVElement parent, DAVElement element, Attributes attrs) throws SVNException { if (element == ENTRY && parent == ServletDAVHandler.UPDATE_REPORT) { setEntryLinkPath(attrs.getValue(LINKPATH_ATTR)); setEntryLockToken(attrs.getValue(LOCK_TOKEN_ATTR)); String revisionString = attrs.getValue(REVISION_ATTR); if (revisionString == null) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Missing XML attribute: rev"), SVNLogType.NETWORK); } try { setEntryRevision(Long.parseLong(revisionString)); } catch (NumberFormatException nfe) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, nfe), SVNLogType.NETWORK); } setDepth(SVNDepth.fromString(attrs.getValue(DEPTH_ATTR))); if (attrs.getValue(START_EMPTY_ATTR) != null) { setEntryStartEmpty(true); } } else if (element != MISSING || parent != ServletDAVHandler.UPDATE_REPORT) { if (isInitialized()) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Invalid XML elements order: entry elements should follow any other."), SVNLogType.NETWORK); } getDAVRequest().startElement(parent, element, attrs); } }
SVNDepth depth = null; if (value instanceof String) { depth = SVNDepth.fromString((String) value);
entry.setDepth(SVNDepth.INFINITY); } else { SVNDepth depth = SVNDepth.fromString(depthStr); entry.setDepth(depth);
assertNullCData(element, property); String value = property.getFirstValue(true); setDepth(SVNDepth.fromString(value)); setDepthRequested(true); } else if (element == SEND_COPYFROM_ARGS) {
result.set(PristineInfo.depth, SVNDepth.UNKNOWN); } else { result.set(PristineInfo.depth, SVNDepth.fromString(depthStr));