public class SVNProperty extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ABSENT
An "svn:entry:absent" SVN untweakable metaproperty.
|
static String |
ACTIVITY_URL
An "svn:wc:ra_dav:activity-url" SVN untweakable metaproperty.
|
static SVNPropertyValue |
BOOLEAN_PROPERTY_VALUE
|
static String |
CACHABLE_PROPS
"cachable-props" SVN untweakable metaproperty.
|
static String |
CHANGELIST
An "svn:entry:changelist" SVN untweakable metaproperty.
|
static String |
CHARSET
SVNKit specific property denoting a charset. |
static String |
CHECKSUM
An "svn:entry:checksum" SVN untweakable metaproperty.
|
static String |
COMMITTED_DATE
An "svn:entry:committed-date" SVN untweakable metaproperty.
|
static String |
COMMITTED_REVISION
An "svn:entry:committed-rev" SVN untweakable metaproperty.
|
static String |
CONFLICT_NEW
An "svn:entry:conflict-new" SVN untweakable metaproperty.
|
static String |
CONFLICT_OLD
An "svn:entry:conflict-old" SVN untweakable metaproperty.
|
static String |
CONFLICT_WRK
An "svn:entry:conflict-wrk" SVN untweakable metaproperty.
|
static String |
COPIED
An "svn:entry:copied" SVN untweakable metaproperty.
|
static String |
COPYFROM_REVISION
An "svn:entry:copyfrom-rev" SVN untweakable metaproperty.
|
static String |
COPYFROM_URL
An "svn:entry:copyfrom-url" SVN untweakable metaproperty.
|
static String |
CORRUPTED
An "svn:entry:corrupted" SVN untweakable metaproperty.
|
static String |
DELETED
An "svn:entry:deleted" SVN untweakable metaproperty.
|
static String |
DEPTH
An "svn:entry:depth" SVN untweakable metaproperty.
|
static byte[] |
EOL_CR_BYTES
CR (carriage return) EOL (end of line) byte array.
|
static byte[] |
EOL_CRLF_BYTES
CR (carriage return) and LF (line feed) EOL (end of line) bytes array.
|
static byte[] |
EOL_LF_BYTES
LF (line feed) EOL (end of line) byte array.
|
static String |
EOL_STYLE
An "svn:eol-style" SVN special property.
|
static String |
EOL_STYLE_CR
One of the four possible values of the
EOL_STYLE property -
"CR" (linefeed) |
static String |
EOL_STYLE_CRLF
One of the four possible values of the
EOL_STYLE property -
"CRLF" |
static String |
EOL_STYLE_LF
One of the four possible values of the
EOL_STYLE property -
"LF" (line feed) |
static String |
EOL_STYLE_NATIVE
One of the four possible values of the
EOL_STYLE property -
"native" |
static String |
EXECUTABLE
An "svn:executable" SVN special property.
|
static String |
EXTERNALS
An "svn:externals" SVN special property.
|
static String |
FILE_EXTERNAL_PATH |
static String |
FILE_EXTERNAL_PEG_REVISION |
static String |
FILE_EXTERNAL_REVISION |
static String |
HAS_PROP_MODS
"has-prop-mods" SVN untweakable metaproperty.
|
static String |
HAS_PROPS
"has-props" SVN untweakable metaproperty.
|
static String |
IGNORE
An "svn:ignore" SVN special property.
|
static String |
INCOMPLETE
An "svn:entry:incomplete" SVN untweakable metaproperty.
|
static String |
INHERITABLE_AUTO_PROPS |
static String |
INHERITABLE_IGNORES |
static String |
KEEP_LOCAL
An "svn:entry:keep-local" SVN untweakable metaproperty.
|
static String |
KEYWORDS
An "svn:keywords" SVN special property.
|
static String |
KIND
An "svn:entry:kind" SVN untweakable metaproperty.
|
static String |
KIND_DIR
One of the two possible values of the
KIND property -
"dir" |
static String |
KIND_FILE
One of the two possible values of the
KIND property -
"file" |
static String |
LAST_AUTHOR
An "svn:entry:last-author" SVN untweakable metaproperty.
|
static String |
LOCK_COMMENT
An "svn:entry:lock-comment" SVN untweakable metaproperty.
|
static String |
LOCK_CREATION_DATE
An "svn:entry:lock-creation-date" SVN untweakable metaproperty.
|
static String |
LOCK_OWNER
An "svn:entry:lock-owner" SVN untweakable metaproperty.
|
static String |
LOCK_TOKEN
An "svn:entry:lock-token" SVN untweakable metaproperty.
|
static String |
MERGE_INFO |
static String |
MIME_TYPE
An "svn:mime-type" SVN special property.
|
static String |
NAME
An "svn:entry:name" SVN untweakable metaproperty.
|
static String |
NATIVE
Default value for the
CHARSET property denoting that the native charset should be used
to encode a file during translation. |
static String |
NEEDS_LOCK
An "svn:needs-lock" SVN special property.
|
static String |
PRESENT_PROPS
"present-props" SVN untweakable metaproperty.
|
static String |
PROP_REJECT_FILE
An "svn:entry:prop-reject-file" SVN untweakable metaproperty.
|
static String |
PROP_TIME
An "svn:entry:prop-time" SVN untweakable metaproperty.
|
static String |
REPOS
An "svn:entry:repos" SVN untweakable metaproperty.
|
static String |
REVISION
An "svn:entry:revision" SVN untweakable metaproperty.
|
static String |
SCHEDULE
An "svn:entry:schedule" SVN untweakable metaproperty.
|
static String |
SCHEDULE_ADD
One of the three possible values of the
SCHEDULE property -
"add" |
static String |
SCHEDULE_DELETE
One of the three possible values of the
SCHEDULE property -
"delete" |
static String |
SCHEDULE_REPLACE
One of the three possible values of the
SCHEDULE property -
"replace" |
static String |
SPECIAL
An "svn:special" SVN special property.
|
static String |
SVN_ENTRY_PREFIX
An "svn:entry:" prefix.
|
static String |
SVN_PREFIX
An "svn:" prefix.
|
static String |
SVN_SYNC_PREFIX
The namespace for revision properties which are used in repository synching operations.
|
static String |
SVN_WC_PREFIX
An "svn:wc:" prefix.
|
static String |
SVNKIT_ENTRY_PREFIX
An "svnkit:entry:" prefix.
|
static String |
SVNKIT_PREFIX
SVNKit's own property namespace.
|
static String |
SVNKIT_SHA1_CHECKSUM
An "svnkit:entry:sha1-checksum" SVNKit untweakable metaproperty.
|
static String |
TEXT_TIME
An "svn:entry:text-time" SVN untweakable metaproperty.
|
static String |
TREE_CONFLICT_DATA |
static String |
TXN_CHECK_LOCKS
A special property used in a commit transaction.
|
static String |
TXN_CHECK_OUT_OF_DATENESS
A special property used in a commit transaction.
|
static String |
URL
An "svn:entry:url" SVN untweakable metaproperty.
|
static String |
UUID
An "svn:entry:uuid" SVN untweakable metaproperty.
|
static String |
WC_URL
An "svn:wc:ra_dav:version-url" SVN untweakable metaproperty.
|
static String |
WORKING_SIZE
An "svn:entry:working-size" SVN untweakable metaproperty.
|
static long |
WORKING_SIZE_UNKNOWN
Default value of the
WORKING_SIZE property. |
Constructor and Description |
---|
SVNProperty() |
Modifier and Type | Method and Description |
---|---|
static void |
addTextMimeType(String textMimeType)
Adds custom mime-type value that should be considered as text.
|
static boolean |
booleanValue(String text)
Converts a string representation of a boolean value to boolean.
|
static void |
clearTextMimeTypes()
Clears custom mime-types previously added.
|
Set |
getTextMimeTypes()
Returns custom mime-types previously added.
|
static SVNPropertyValue |
getValueOfBooleanProperty(String propName)
Returns the value for such boolean properties as
"svn:executable", "svn:needs-lock"
and "svn:special".
|
static boolean |
isBinaryMimeType(String mimeType)
Says if the given MIME-type corresponds to a binary (non-textual) type.
|
static boolean |
isBooleanProperty(String propName)
Checks whether the property is boolean.
|
static boolean |
isEntryProperty(String name)
Says if the given property name starts with the
SVN_ENTRY_PREFIX
prefix. |
static boolean |
isRegularProperty(String name)
Checks if a property is regular.
|
static boolean |
isSVNKitProperty(String name)
Says if the given property name starts with the
SVNKIT_PREFIX . |
static boolean |
isSVNProperty(String name)
Says if the given property name starts with the
SVN_PREFIX
prefix or with the SVNKIT_PREFIX . |
static boolean |
isTextMimeType(String mimeType)
Says if the given MIME-type corresponds to a text type.
|
static boolean |
isUTF8(String charset)
Says if the given charset is the name of UTF-8 encoding.
|
static boolean |
isWorkingCopyProperty(String name)
Says if the given property name starts with the
SVN_WC_PREFIX
prefix. |
static long |
longValue(String text)
Converts a string representation of a numeric value to a long value.
|
static boolean |
mimeTypeIsBinary(String mimeType) |
static String |
shortPropertyName(String longName)
Returns a short name for the given property name - that is
a name without any prefixes.
|
static String |
toString(boolean b)
Converts a boolean value to a string representation.
|
static String |
toString(long i)
Converts a long value to a string representation.
|
public static final String SVN_PREFIX
public static final String SVNKIT_PREFIX
public static final String SVN_WC_PREFIX
public static final String SVN_SYNC_PREFIX
public static final String TXN_CHECK_LOCKS
public static final String TXN_CHECK_OUT_OF_DATENESS
public static final String SVN_ENTRY_PREFIX
public static final String SVNKIT_ENTRY_PREFIX
public static final String EOL_STYLE
public static final String IGNORE
public static final String MIME_TYPE
public static final String KEYWORDS
public static final String EXECUTABLE
public static final String EXTERNALS
public static final String SPECIAL
public static final String MERGE_INFO
public static final String INHERITABLE_IGNORES
public static final String INHERITABLE_AUTO_PROPS
public static final String REVISION
public static final String COMMITTED_REVISION
public static final String COMMITTED_DATE
public static final String HAS_PROPS
public static final String HAS_PROP_MODS
public static final String CACHABLE_PROPS
public static final String PRESENT_PROPS
public static final String KEEP_LOCAL
public static final String CHANGELIST
public static final String WORKING_SIZE
public static final String DEPTH
public static final String FILE_EXTERNAL_PATH
public static final String FILE_EXTERNAL_REVISION
public static final String FILE_EXTERNAL_PEG_REVISION
public static final String TREE_CONFLICT_DATA
public static final String CHECKSUM
public static final String SVNKIT_SHA1_CHECKSUM
public static final String URL
public static final String COPYFROM_URL
public static final String COPYFROM_REVISION
public static final String SCHEDULE
public static final String COPIED
public static final String LAST_AUTHOR
public static final String UUID
public static final String REPOS
public static final String PROP_TIME
public static final String TEXT_TIME
public static final String NAME
public static final String KIND
public static final String CONFLICT_OLD
public static final String CONFLICT_NEW
public static final String CONFLICT_WRK
public static final String PROP_REJECT_FILE
public static final String DELETED
public static final String ABSENT
public static final String INCOMPLETE
public static final String CORRUPTED
public static final String WC_URL
public static final String ACTIVITY_URL
public static final String LOCK_TOKEN
public static final String LOCK_COMMENT
public static final String LOCK_OWNER
public static final String LOCK_CREATION_DATE
public static final String NEEDS_LOCK
public static final String KIND_DIR
KIND
property -
"dir"public static final String KIND_FILE
KIND
property -
"file"public static final String EOL_STYLE_LF
EOL_STYLE
property -
"LF" (line feed)public static final String EOL_STYLE_CR
EOL_STYLE
property -
"CR" (linefeed)public static final String EOL_STYLE_CRLF
EOL_STYLE
property -
"CRLF"public static final String EOL_STYLE_NATIVE
EOL_STYLE
property -
"native"public static final byte[] EOL_LF_BYTES
public static final byte[] EOL_CRLF_BYTES
public static final byte[] EOL_CR_BYTES
public static final String CHARSET
SVNKit
specific property denoting a charset. A user may set this property on files
if he would like to fix the charset of the file. Then when checking out, exporting, updating, etc.
files with such properties set on them will be translated (encoded) using the charset value of this
property. Note that to take advantage of this property a user must utilize a corresponging version
of the SVNKit
library supporting this property.public static final String NATIVE
CHARSET
property denoting that the native charset should be used
to encode a file during translation. The native charset name will be fetched via a call to
ISVNOptions.getNativeCharset()
.public static final String SCHEDULE_ADD
SCHEDULE
property -
"add"public static final String SCHEDULE_DELETE
SCHEDULE
property -
"delete"public static final String SCHEDULE_REPLACE
SCHEDULE
property -
"replace"public static final long WORKING_SIZE_UNKNOWN
WORKING_SIZE
property.public static final SVNPropertyValue BOOLEAN_PROPERTY_VALUE
EXECUTABLE
, NEEDS_LOCK
, SPECIAL
.
Used only by SVNKit
internals, never stored in a working copy.public static boolean isWorkingCopyProperty(String name)
SVN_WC_PREFIX
prefix.name
- a property name to checkname
is
not null and starts with
the SVN_WC_PREFIX
prefix, otherwise falsepublic static boolean isEntryProperty(String name)
SVN_ENTRY_PREFIX
prefix.name
- a property name to checkname
is
not null and starts with
the SVN_ENTRY_PREFIX
prefix, otherwise falsepublic static boolean isSVNProperty(String name)
SVN_PREFIX
prefix or with the SVNKIT_PREFIX
.name
- a property name to checkname
is
not null and starts with
the SVN_PREFIX
prefix or with the SVNKIT_PREFIX
prefix,
otherwise falsepublic static boolean isSVNKitProperty(String name)
SVNKIT_PREFIX
.name
- a property name to checkname
is
not null and starts with the
SVNKIT_PREFIX
prefix, otherwise falsepublic static boolean isRegularProperty(String name)
SVN_WC_PREFIX
nor with SVN_ENTRY_PREFIX
.name
- a property namepublic static boolean isTextMimeType(String mimeType)
mimeType
- a value of a file MIME_TYPE
propertymimeType
is either null or is a text
type (starts with "text/")isBinaryMimeType(String)
public static boolean isBinaryMimeType(String mimeType)
mimeType
- a value of a file MIME_TYPE
propertymimeType
is not a text typeisTextMimeType(String)
public static boolean isUTF8(String charset)
charset
- a value of a file CHARSET
propertycharset
is the name of UTF-8 encodingpublic static boolean booleanValue(String text)
COPIED
property.text
- a string to convert to a boolean valuetext
is not null
and is equal, ignoring case, to the string
"true"public static long longValue(String text)
text
- a string to convert to a long valuepublic static String toString(boolean b)
COPIED
property.b
- a boolean valueb
public static String toString(long i)
i
- a long valuei
public static String shortPropertyName(String longName)
longName
- a property namepublic static SVNPropertyValue getValueOfBooleanProperty(String propName)
propName
- a property nameisBooleanProperty(String)
public static boolean isBooleanProperty(String propName)
propName
- a property namepublic static void addTextMimeType(String textMimeType)
public static boolean mimeTypeIsBinary(String mimeType)
public Set getTextMimeTypes()
public static void clearTextMimeTypes()
Copyright © 2023. All rights reserved.