Class SVNPropertiesManager
java.lang.Object
org.tmatesoft.svn.core.internal.wc.SVNPropertiesManager
public class SVNPropertiesManager
extends java.lang.Object
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.util.Collectionprivate static final java.util.Collection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic java.util.MapcomputeAutoProperties(ISVNOptions options, java.io.File file, java.util.Map properties) private static booleancontains(java.lang.String[] values, java.lang.String value) static voiddeleteWCProperties(SVNAdminArea dir, java.lang.String name, boolean recursive) static java.lang.StringdetermineEncodingByMimeType(java.lang.String mimeType) private static java.util.CollectiongetKeywords(java.lang.String value) static SVNPropertyValuegetProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) static SVNPropertyValuegetWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) static java.util.MapgetWorkingCopyPropertyValues(java.io.File path, SVNEntry entry, java.lang.String propName, SVNDepth depth, boolean base) private static voidhandleInconsistentEOL(SVNException svne, java.lang.Object path) private static booleanhasSVNProperties(SVNProperties props) static booleanisValidPropertyName(java.lang.String name) static SVNStatusTypemergeProperties(SVNWCAccess wcAccess, java.io.File path, SVNProperties baseProperties, SVNProperties diff, boolean baseMerge, boolean dryRun) static java.util.MapparseMergeInfo(java.io.File path, SVNEntry entry, boolean base) static booleanpropNeedsTranslation(java.lang.String propertyName) static voidrecordWCMergeInfo(java.io.File path, java.util.Map mergeInfo, SVNWCAccess wcAccess) static booleansetProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean skipChecks) static booleansetWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean write) static voidvalidateEOLProperty(java.lang.Object path, ISVNFileContentFetcher fetcher) static voidvalidateMimeType(java.lang.String value) private static voidvalidatePropertyName(java.lang.Object path, java.lang.String name, SVNNodeKind kind) static SVNPropertyValuevalidatePropertyValue(java.lang.Object path, SVNNodeKind kind, java.lang.String name, SVNPropertyValue value, boolean force, ISVNOptions options, ISVNFileContentFetcher fileContentFetcher) static voidvalidateRevisionProperties(SVNProperties revisionProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NOT_ALLOWED_FOR_FILE
private static final java.util.Collection NOT_ALLOWED_FOR_FILE -
NOT_ALLOWED_FOR_DIR
private static final java.util.Collection NOT_ALLOWED_FOR_DIR
-
-
Constructor Details
-
SVNPropertiesManager
public SVNPropertiesManager()
-
-
Method Details
-
validateRevisionProperties
- Throws:
SVNException
-
setWCProperty
public static boolean setWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean write) throws SVNException - Throws:
SVNException
-
getWCProperty
public static SVNPropertyValue getWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException - Throws:
SVNException
-
deleteWCProperties
public static void deleteWCProperties(SVNAdminArea dir, java.lang.String name, boolean recursive) throws SVNException - Throws:
SVNException
-
getProperty
public static SVNPropertyValue getProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException - Throws:
SVNException
-
setProperty
public static boolean setProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean skipChecks) throws SVNException - Throws:
SVNException
-
mergeProperties
public static SVNStatusType mergeProperties(SVNWCAccess wcAccess, java.io.File path, SVNProperties baseProperties, SVNProperties diff, boolean baseMerge, boolean dryRun) throws SVNException - Throws:
SVNException
-
computeAutoProperties
public static java.util.Map computeAutoProperties(ISVNOptions options, java.io.File file, java.util.Map properties) throws SVNException - Throws:
SVNException
-
getWorkingCopyPropertyValues
public static java.util.Map getWorkingCopyPropertyValues(java.io.File path, SVNEntry entry, java.lang.String propName, SVNDepth depth, boolean base) throws SVNException - Throws:
SVNException
-
recordWCMergeInfo
public static void recordWCMergeInfo(java.io.File path, java.util.Map mergeInfo, SVNWCAccess wcAccess) throws SVNException - Throws:
SVNException
-
parseMergeInfo
public static java.util.Map parseMergeInfo(java.io.File path, SVNEntry entry, boolean base) throws SVNException - Throws:
SVNException
-
isValidPropertyName
- Throws:
SVNException
-
propNeedsTranslation
public static boolean propNeedsTranslation(java.lang.String propertyName) -
getKeywords
private static java.util.Collection getKeywords(java.lang.String value) -
contains
private static boolean contains(java.lang.String[] values, java.lang.String value) -
validatePropertyValue
public static SVNPropertyValue validatePropertyValue(java.lang.Object path, SVNNodeKind kind, java.lang.String name, SVNPropertyValue value, boolean force, ISVNOptions options, ISVNFileContentFetcher fileContentFetcher) throws SVNException - Throws:
SVNException
-
hasSVNProperties
-
validatePropertyName
private static void validatePropertyName(java.lang.Object path, java.lang.String name, SVNNodeKind kind) throws SVNException - Throws:
SVNException
-
validateMimeType
- Throws:
SVNException
-
determineEncodingByMimeType
public static java.lang.String determineEncodingByMimeType(java.lang.String mimeType) -
validateEOLProperty
public static void validateEOLProperty(java.lang.Object path, ISVNFileContentFetcher fetcher) throws SVNException - Throws:
SVNException
-
handleInconsistentEOL
private static void handleInconsistentEOL(SVNException svne, java.lang.Object path) throws SVNException - Throws:
SVNException
-