org.tmatesoft.svn.core.wc2
Class SvnSetProperty

java.lang.Object
  extended by org.tmatesoft.svn.core.wc2.SvnOperation<T>
      extended by org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNPropertyData>
          extended by org.tmatesoft.svn.core.wc2.SvnSetProperty
All Implemented Interfaces:
ISvnObjectReceiver<SVNPropertyData>, ISvnOperationOptionsProvider

public class SvnSetProperty
extends SvnReceivingOperation<SVNPropertyData>

Represents set property operation. Sets propertyName to propertyValue on target or sets propertyName to propertyValue on revision in the repository represented by target. A propertyValue of null will delete the property.

If propertyName is an svn-controlled property (i.e. prefixed with "svn:"), then the caller is responsible for ensuring that the value is UTF8-encoded and uses LF line-endings.


Constructor Summary
protected SvnSetProperty(SvnOperationFactory factory)
           
 
Method Summary
protected  void ensureArgumentsAreValid()
           
 java.lang.String getPropertyName()
          Returns property name.
 SVNPropertyValue getPropertyValue()
          Returns property value.
 ISvnPropertyValueProvider getPropertyValueProvider()
          Returns property value provider callback
 boolean isChangesWorkingCopy()
          Gets whether the operation changes working copy
 boolean isForce()
          Sets whether to skip validity checking.
 boolean isRevisionProperty()
          Gets whether it is revision property.
 void setForce(boolean force)
          Sets whether to skip validity checking.
 void setPropertyName(java.lang.String propertyName)
          Sets property name
 void setPropertyValue(SVNPropertyValue propertyValue)
          Sets property value
 void setPropertyValueProvider(ISvnPropertyValueProvider propertyValueProvider)
          Sets property value provider callback
 void setRevisionProperty(boolean revisionProperty)
          Sets whether it is revision property.
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnSetProperty

protected SvnSetProperty(SvnOperationFactory factory)
Method Detail

isForce

public boolean isForce()
Sets whether to skip validity checking.

Returns:
true if validity checking should not be done, otherwise false
See Also:
setForce(boolean)

setForce

public void setForce(boolean force)
Sets whether to skip validity checking.


getPropertyValue

public SVNPropertyValue getPropertyValue()
Returns property value.

Returns:
value of the property

setPropertyValue

public void setPropertyValue(SVNPropertyValue propertyValue)
Sets property value

Parameters:
propertyValue - value of the property

setPropertyValueProvider

public void setPropertyValueProvider(ISvnPropertyValueProvider propertyValueProvider)
Sets property value provider callback

Parameters:
propertyValueProvider - callback that will be called to get property values to set

getPropertyValueProvider

public ISvnPropertyValueProvider getPropertyValueProvider()
Returns property value provider callback

Returns:
property value provider callback set on this operation

getPropertyName

public java.lang.String getPropertyName()
Returns property name.

Returns:
name of the property

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Sets property name

Parameters:
propertyName - name of the property

ensureArgumentsAreValid

protected void ensureArgumentsAreValid()
                                throws SVNException
Overrides:
ensureArgumentsAreValid in class SvnOperation<SVNPropertyData>
Throws:
SVNException

setRevisionProperty

public void setRevisionProperty(boolean revisionProperty)
Sets whether it is revision property.

Parameters:
revisionProperty - true if it is revision property, true if it is target's property

isRevisionProperty

public boolean isRevisionProperty()
Gets whether it is revision property.

Returns:
true if it is revision property, true if it is target's property

isChangesWorkingCopy

public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy

Overrides:
isChangesWorkingCopy in class SvnOperation<SVNPropertyData>
Returns:
true if the operation changes the working copy, otherwise false