org.apache.subversion.javahl.types
Class ExternalItem

java.lang.Object
  extended by 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
ExternalItem(String targetDir, String url, Revision revision, Revision pegRevision)
          Create a new external item declaration.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalItem

public ExternalItem(String targetDir,
                    String url,
                    Revision revision,
                    Revision pegRevision)
             throws SubversionException
Create a new external item declaration.

Note: If both revision and pegRevision are null, they will be interpreted as Revision.HEAD. If only one of them is null, it will get the same value as the other revision.

Parameters:
targetDir - See getTargetDir()
url - See getUrl()
revision - See getRevision(); null will be interpreted as pegRevision
pegRevision - See getPegRevision(); null will be interpreted as Revision.HEAD
Throws:
SubversionException
Method Detail

getTargetDir

public String 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

public String getUrl()
Where to check out from. This is possibly a relative external URL, as allowed in externals definitions, but without the peg revision.


getRevision

public Revision getRevision()
What revision to check out. The only valid kinds for this are a numered revision Revision.Number, a date Revision.DateSpec, or Revision.HEAD.


getPegRevision

public Revision getPegRevision()
The peg revision to use when checking out. The only valid kinds for this are a numered revision Revision.Number, a date Revision.DateSpec, or Revision.HEAD.


equals

public boolean equals(Object obj)
Compare to another external item.

Overrides:
equals in class Object

hashCode

public int hashCode()
Return a hash code for this object.

Overrides:
hashCode in class Object