The SVNProperty class is a representation class for both versioned
properties (user-managed svn specials) and for metaproperties (untweakable)
supported by Subversion. This class holds string constants that are property
names, and gives some useful methods to operate with properties (in particular).
version: 1.1.1 author: TMate Software Ltd.
An "svn:wc:ra_dav:version-url" SVN untweakable metaproperty.
Method Detail
booleanValue
public static boolean booleanValue(String text)(Code)
Converts a string representation of a boolean value to boolean.
Useful to convert values of the
SVNProperty.COPIED property.
Parameters: text - a string to convert to a boolean value true if and only iftext is not nulland is equal, ignoring case, to the string "true"
getEOLBytes
public static byte[] getEOLBytes(String eolType)(Code)
Returns the value for such boolean properties as
"svn:executable", "svn:needs-lock"
and "svn:special".
Used by internals.
Parameters: propName - a property name the property value "*", or null if the property is not boolean See Also:SVNProperty.isBooleanProperty(String) since: 1.1
isBinaryMimeType
public static boolean isBinaryMimeType(String mimeType)(Code)
Says if the given MIME-type corresponds to a binary (non-textual) type.
Parameters: mimeType - a value of a file SVNProperty.MIME_TYPE property true if mimeTypeis not a text type See Also:SVNProperty.isTextMimeType(String) See Also:
isBooleanProperty
public static boolean isBooleanProperty(String propName)(Code)
Checks whether the property is boolean.
Parameters: propName - a property name true if boolean, otherwise false since: 1.1
isEntryProperty
public static boolean isEntryProperty(String name)(Code)
Says if the given property name starts with the
SVNProperty.SVN_ENTRY_PREFIX prefix.
Parameters: name - a property name to check true if name isnot null and starts withthe SVNProperty.SVN_ENTRY_PREFIX prefix, otherwise false
isRegularProperty
public static boolean isRegularProperty(String name)(Code)
Checks if a property is regular. Regular are some "svn:"
properties and all user props, i.e. ones stored in the repository filesystem.
Parameters: name - a property name true if regular, otherwise false
isSVNProperty
public static boolean isSVNProperty(String name)(Code)
Says if the given property name starts with the
SVNProperty.SVN_PREFIX prefix.
Parameters: name - a property name to check true if name isnot null and starts withthe SVNProperty.SVN_PREFIX prefix, otherwise false
isTextMimeType
public static boolean isTextMimeType(String mimeType)(Code)
Says if the given MIME-type corresponds to a text type.
Parameters: mimeType - a value of a file SVNProperty.MIME_TYPE property true if mimeTypeis either null or is a texttype (starts with "text/") See Also:SVNProperty.isBinaryMimeType(String) See Also:
isWorkingCopyProperty
public static boolean isWorkingCopyProperty(String name)(Code)
Says if the given property name starts with the
SVNProperty.SVN_WC_PREFIX prefix.
Parameters: name - a property name to check true if name isnot null and starts withthe SVNProperty.SVN_WC_PREFIX prefix, otherwise false
Converts a string representation of a numeric value to a long value.
Useful to convert revision numbers.
Parameters: text - a string to convert to a long value a long representation of the given string; -1 is returned if the string can not be parsed
Converts a boolean value to a string representation.
Useful to convert values of the
SVNProperty.COPIED property.
Parameters: b - a boolean value a string representation of b