Class ExternalItem
java.lang.Object
org.apache.subversion.javahl.types.ExternalItem
- All Implemented Interfaces:
Serializable
public class ExternalItem extends Object implements Serializable
Describes one external item declaration
- Since:
- 1.9
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ExternalItem(String targetDir, String url, Revision revision, Revision pegRevision)
Create a new external item declaration. -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
Compare to another external item.Revision
getPegRevision()
The peg revision to use when checking out.Revision
getRevision()
What revision to check out.String
getTargetDir()
The name of the subdirectory into which this external should be checked out.String
getUrl()
Where to check out from.int
hashCode()
Return a hash code for this object.
-
Constructor Details
-
ExternalItem
public ExternalItem(String targetDir, String url, Revision revision, Revision pegRevision) throws SubversionExceptionCreate a new external item declaration.Note: If both
revision
andpegRevision
arenull
, they will be interpreted asRevision.HEAD
. If only one of them isnull
, it will get the same value as the other revision.- Parameters:
targetDir
- SeegetTargetDir()
url
- SeegetUrl()
revision
- SeegetRevision()
;null
will be interpreted aspegRevision
pegRevision
- SeegetPegRevision()
;null
will be interpreted asRevision.HEAD
- Throws:
SubversionException
-
-
Method Details
-
getTargetDir
The name of the subdirectory into which this external should be checked out. This is relative to the parent directory that holds this external item. -
getUrl
Where to check out from. This is possibly a relative external URL, as allowed in externals definitions, but without the peg revision. -
getRevision
What revision to check out. The only valid kinds for this are a numered revisionRevision.Number
, a dateRevision.DateSpec
, orRevision.HEAD
. -
getPegRevision
The peg revision to use when checking out. The only valid kinds for this are a numered revisionRevision.Number
, a dateRevision.DateSpec
, orRevision.HEAD
. -
equals
Compare to another external item. -
hashCode
public int hashCode()Return a hash code for this object.
-