Package org.apache.subversion.javahl
Class ClientNotifyInformation
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.subversion.javahl.ClientNotifyInformation
-
- All Implemented Interfaces:
Serializable
public class ClientNotifyInformation extends EventObject
The event passed to theClientNotifyCallback.onNotify(org.apache.subversion.javahl.ClientNotifyInformation)API to notifyISVNClientof relevant events.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientNotifyInformation.ActionThe type of action triggering the notificationstatic classClientNotifyInformation.LockStatusstatic classClientNotifyInformation.Status
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ClientNotifyInformation(String path, ClientNotifyInformation.Action action, NodeKind kind, String mimeType, Lock lock, String errMsg, List<ClientException.ErrorMessage> errMsgStack, ClientNotifyInformation.Status contentState, ClientNotifyInformation.Status propState, ClientNotifyInformation.LockStatus lockState, long revision, String changelistName, RevisionRange mergeRange, String url, String pathPrefix, String propName, Map<String,String> revProps, long oldRevision, long hunkOriginalStart, long hunkOriginalLength, long hunkModifiedStart, long hunkModifiedLength, long hunkMatchedLine, int hunkFuzz)This constructor is to be used by the native code.ClientNotifyInformation(String path, ClientNotifyInformation.Action action, NodeKind kind, String mimeType, Lock lock, String errMsg, ClientNotifyInformation.Status contentState, ClientNotifyInformation.Status propState, ClientNotifyInformation.LockStatus lockState, long revision, String changelistName, RevisionRange mergeRange, String pathPrefix, String propName, Map<String,String> revProps, long oldRevision, long hunkOriginalStart, long hunkOriginalLength, long hunkModifiedStart, long hunkModifiedLength, long hunkMatchedLine, int hunkFuzz)Deprecated.Constructor compatible with the 1.8 API; usesnullURL and errMsgStack values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientNotifyInformation.ActiongetAction()StringgetChangelistName()ClientNotifyInformation.StatusgetContentState()StringgetErrMsg()List<ClientException.ErrorMessage>getErrMsgDetails()intgetHunkFuzz()longgetHunkMatchedLine()longgetHunkModifiedLength()longgetHunkModifiedStart()longgetHunkOriginalLength()longgetHunkOriginalStart()NodeKindgetKind()LockgetLock()ClientNotifyInformation.LockStatusgetLockState()RevisionRangegetMergeRange()StringgetMimeType()StringgetNotifiedPath()longgetOldRevision()StringgetPath()StringgetPathPrefix()StringgetPropName()ClientNotifyInformation.StatusgetPropState()longgetRevision()Map<String,String>getRevProps()StringgetUrl()-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ClientNotifyInformation
public ClientNotifyInformation(String path, ClientNotifyInformation.Action action, NodeKind kind, String mimeType, Lock lock, String errMsg, List<ClientException.ErrorMessage> errMsgStack, ClientNotifyInformation.Status contentState, ClientNotifyInformation.Status propState, ClientNotifyInformation.LockStatus lockState, long revision, String changelistName, RevisionRange mergeRange, String url, String pathPrefix, String propName, Map<String,String> revProps, long oldRevision, long hunkOriginalStart, long hunkOriginalLength, long hunkModifiedStart, long hunkModifiedLength, long hunkMatchedLine, int hunkFuzz)
This constructor is to be used by the native code.- Parameters:
path- The path of the item, which is the source of the event.action- TheClientNotifyInformation.Actionwhich triggered this event.kind- TheNodeKindof the item.mimeType- The MIME type of the item.lock- Any lock for the item.errMsg- Any error message for the item.contentState- TheClientNotifyInformation.Statusof the content of the item.propState- TheClientNotifyInformation.Statusof the properties of the item.lockState- TheClientNotifyInformation.LockStatusof the lock of the item.revision- The revision of the item.changelistName- The name of the changelist.mergeRange- The range of the merge just beginning to occur.pathPrefix- A common path prefix.- Since:
- 1.9
-
ClientNotifyInformation
@Deprecated public ClientNotifyInformation(String path, ClientNotifyInformation.Action action, NodeKind kind, String mimeType, Lock lock, String errMsg, ClientNotifyInformation.Status contentState, ClientNotifyInformation.Status propState, ClientNotifyInformation.LockStatus lockState, long revision, String changelistName, RevisionRange mergeRange, String pathPrefix, String propName, Map<String,String> revProps, long oldRevision, long hunkOriginalStart, long hunkOriginalLength, long hunkModifiedStart, long hunkModifiedLength, long hunkMatchedLine, int hunkFuzz)
Deprecated.Constructor compatible with the 1.8 API; usesnullURL and errMsgStack values.
-
-
Method Detail
-
getPath
public String getPath()
- Returns:
- The path of the item, which is the source of the event. This may actually be a URL.
-
getNotifiedPath
public String getNotifiedPath()
- Returns:
path, which may benull.- Since:
- 1.9
-
getAction
public ClientNotifyInformation.Action getAction()
- Returns:
- The
ClientNotifyInformation.Actionwhich triggered this event.
-
getMimeType
public String getMimeType()
- Returns:
- The MIME type of the item.
-
getLock
public Lock getLock()
- Returns:
- Any lock for the item.
-
getErrMsg
public String getErrMsg()
- Returns:
- Any error message for the item.
-
getErrMsgDetails
public List<ClientException.ErrorMessage> getErrMsgDetails()
- Returns:
- Details about the error message for the item.
-
getContentState
public ClientNotifyInformation.Status getContentState()
- Returns:
- The
ClientNotifyInformation.Statusof the content of the item.
-
getPropState
public ClientNotifyInformation.Status getPropState()
- Returns:
- The
ClientNotifyInformation.Statusof the properties of the item.
-
getLockState
public ClientNotifyInformation.LockStatus getLockState()
- Returns:
- The
ClientNotifyInformation.LockStatusof the lock of the item.
-
getRevision
public long getRevision()
- Returns:
- The revision of the item.
-
getChangelistName
public String getChangelistName()
- Returns:
- The name of the changelist.
-
getMergeRange
public RevisionRange getMergeRange()
- Returns:
- The range of the merge just beginning to occur.
-
getUrl
public String getUrl()
- Returns:
url, which may benull- Since:
- 1.9
-
getPathPrefix
public String getPathPrefix()
- Returns:
- The common absolute path prefix.
-
getPropName
public String getPropName()
-
getOldRevision
public long getOldRevision()
-
getHunkOriginalStart
public long getHunkOriginalStart()
-
getHunkOriginalLength
public long getHunkOriginalLength()
-
getHunkModifiedStart
public long getHunkModifiedStart()
-
getHunkModifiedLength
public long getHunkModifiedLength()
-
getHunkMatchedLine
public long getHunkMatchedLine()
-
getHunkFuzz
public int getHunkFuzz()
-
-