Package org.tigris.subversion.javahl
Class PropertyData
- java.lang.Object
-
- org.tigris.subversion.javahl.PropertyData
-
- Direct Known Subclasses:
JavaHLPropertyData
public class PropertyData extends java.lang.ObjectThis class describes one property managed by Subversion.
-
-
Field Summary
Fields Modifier and Type Field Description private SVNClientInterfaceclientreference to the creating SVNClient object to change or delete this propertyprivate byte[]datathe byte array value of the propertystatic java.lang.StringEOL_STYLEhow the end of line code should be treated during retrievalstatic java.lang.StringEXECUTABLEflag if the file should be made excutable during retrievalstatic java.lang.StringEXECUTABLE_VALUEvalue for svn:executablestatic java.lang.StringEXTERNALSlist of directory managed outside of this working copystatic java.lang.StringIGNORElist of filenames with wildcards which should be ignored by add and statusstatic java.lang.StringKEYWORDSlist of keywords to be expanded during retrievalstatic java.lang.StringMIME_TYPEmime type of the entry, used to flag binary filesprivate java.lang.Stringnamethe name of the propertystatic java.lang.StringNEEDS_LOCKprivate java.lang.Stringpathpath of the subversion to change or delete this propertystatic java.lang.StringREV_AUTHORthe author of the revisionstatic java.lang.StringREV_DATEthe date of the revisionstatic java.lang.StringREV_LOGthe log message of the revisionstatic java.lang.StringREV_ORIGINAL_DATEthe original date of the revisionprivate java.lang.Stringvaluethe string value of the property
-
Constructor Summary
Constructors Constructor Description PropertyData(java.lang.String p, java.lang.String n, java.lang.String v)this contructor is used when building a thin wrapper around other property retrieval methodsPropertyData(SVNClientInterface cl, java.lang.String p, java.lang.String n, java.lang.String v, byte[] d)this constructor is only used by the JNI code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Returns the byte array value of the property There is no protocol if a property is a string or a binary valuejava.lang.StringgetName()Returns the name of the propertyjava.lang.StringgetPath()Return the path of the item which owns this propertyjava.lang.StringgetValue()Returns the string value of the property.voidremove(boolean recurse)remove this property from subversionvoidsetValue(byte[] newValue, boolean recurse)modify the byte array value of a property The string array value is clearedvoidsetValue(java.lang.String newValue, boolean recurse)modify the string value of a property The byte array value is cleared
-
-
-
Field Detail
-
name
private java.lang.String name
the name of the property
-
value
private java.lang.String value
the string value of the property
-
data
private byte[] data
the byte array value of the property
-
path
private java.lang.String path
path of the subversion to change or delete this property
-
client
private SVNClientInterface client
reference to the creating SVNClient object to change or delete this property
-
MIME_TYPE
public static final java.lang.String MIME_TYPE
mime type of the entry, used to flag binary files- See Also:
- Constant Field Values
-
IGNORE
public static final java.lang.String IGNORE
list of filenames with wildcards which should be ignored by add and status- See Also:
- Constant Field Values
-
EOL_STYLE
public static final java.lang.String EOL_STYLE
how the end of line code should be treated during retrieval- See Also:
- Constant Field Values
-
KEYWORDS
public static final java.lang.String KEYWORDS
list of keywords to be expanded during retrieval- See Also:
- Constant Field Values
-
EXECUTABLE
public static final java.lang.String EXECUTABLE
flag if the file should be made excutable during retrieval- See Also:
- Constant Field Values
-
EXECUTABLE_VALUE
public static final java.lang.String EXECUTABLE_VALUE
value for svn:executable- See Also:
- Constant Field Values
-
EXTERNALS
public static final java.lang.String EXTERNALS
list of directory managed outside of this working copy- See Also:
- Constant Field Values
-
REV_AUTHOR
public static final java.lang.String REV_AUTHOR
the author of the revision- See Also:
- Constant Field Values
-
REV_LOG
public static final java.lang.String REV_LOG
the log message of the revision- See Also:
- Constant Field Values
-
REV_DATE
public static final java.lang.String REV_DATE
the date of the revision- See Also:
- Constant Field Values
-
REV_ORIGINAL_DATE
public static final java.lang.String REV_ORIGINAL_DATE
the original date of the revision- See Also:
- Constant Field Values
-
NEEDS_LOCK
public static final java.lang.String NEEDS_LOCK
- Since:
- 1.2 flag property if a lock is needed to modify this node
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyData
PropertyData(SVNClientInterface cl, java.lang.String p, java.lang.String n, java.lang.String v, byte[] d)
this constructor is only used by the JNI code- Parameters:
cl- the client object, which created this objectp- the path of the item owning this propertyn- the name of the propertyv- the string value of the propertyd- the byte array value of the property
-
PropertyData
PropertyData(java.lang.String p, java.lang.String n, java.lang.String v)this contructor is used when building a thin wrapper around other property retrieval methods- Parameters:
p- the path of the item owning this propertyn- the name of the propertyv- the string value of the property
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the property- Returns:
- the name
-
getValue
public java.lang.String getValue()
Returns the string value of the property. There is no protocol if a property is a string or a binary value- Returns:
- the string value
-
getPath
public java.lang.String getPath()
Return the path of the item which owns this property- Returns:
- the path
-
getData
public byte[] getData()
Returns the byte array value of the property There is no protocol if a property is a string or a binary value- Returns:
- the byte array value
-
setValue
public void setValue(java.lang.String newValue, boolean recurse) throws ClientExceptionmodify the string value of a property The byte array value is cleared- Parameters:
newValue- the new string valuerecurse- if operation should recurse directories- Throws:
ClientException
-
setValue
public void setValue(byte[] newValue, boolean recurse) throws ClientExceptionmodify the byte array value of a property The string array value is cleared- Parameters:
newValue- the new byte array valuerecurse- if operation should recurse directories- Throws:
ClientException
-
remove
public void remove(boolean recurse) throws ClientExceptionremove this property from subversion- Parameters:
recurse- if operation should recurse directories- Throws:
ClientException
-
-