uk.co.petertribble.pkgview
Class ContentsFileDetail

java.lang.Object
  extended by uk.co.petertribble.pkgview.ContentsFileDetail

public class ContentsFileDetail
extends java.lang.Object


Field Summary
protected  java.lang.String cksum
           
protected  java.lang.String filename
           
protected  java.lang.String ftype
           
protected  java.lang.String group
           
protected  java.lang.String mode
           
protected  java.lang.String modtime
           
protected  java.lang.String owner
           
protected  java.lang.String pclass
           
protected  java.util.List<java.lang.String> pkglist
           
protected  java.lang.String size
           
protected  java.lang.String target
           
 
Constructor Summary
ContentsFileDetail(java.lang.String s)
          Create a set of details from a line of the contents file.
 
Method Summary
 java.lang.String getDescriptiveType()
          Return the type of this entry as a descriptive String.
 java.lang.String getName()
          Return the name of the file associated with this entry.
 java.util.List<java.lang.String> getPackageNames()
          Return the list of names of packages that own this entry.
 java.util.List<SolarisPackage> getPackages()
          Return the list of packages that own this entry.
 boolean isDirectory()
          Return whether this entry is a directory, which means that it would be of type d or x (x denotes a directory that is exclusive to a package)
 boolean isLink()
          Return whether this entry is a link to another file.
 boolean isRegular()
          Return whether this entry is a regular file, which means that it would be of type f or v or e.
 boolean isShared()
          Return whether this entry is shared amongst packages, determined by whether the number of packages that own this entry is one or more than one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

protected java.lang.String filename

ftype

protected java.lang.String ftype

pclass

protected java.lang.String pclass

owner

protected java.lang.String owner

group

protected java.lang.String group

mode

protected java.lang.String mode

size

protected java.lang.String size

cksum

protected java.lang.String cksum

modtime

protected java.lang.String modtime

pkglist

protected java.util.List<java.lang.String> pkglist

target

protected java.lang.String target
Constructor Detail

ContentsFileDetail

public ContentsFileDetail(java.lang.String s)
Create a set of details from a line of the contents file.

Method Detail

getName

public java.lang.String getName()
Return the name of the file associated with this entry.


getPackageNames

public java.util.List<java.lang.String> getPackageNames()
Return the list of names of packages that own this entry.


getPackages

public java.util.List<SolarisPackage> getPackages()
Return the list of packages that own this entry.


isShared

public boolean isShared()
Return whether this entry is shared amongst packages, determined by whether the number of packages that own this entry is one or more than one.


isDirectory

public boolean isDirectory()
Return whether this entry is a directory, which means that it would be of type d or x (x denotes a directory that is exclusive to a package)


isRegular

public boolean isRegular()
Return whether this entry is a regular file, which means that it would be of type f or v or e. As a result, it will have a size, checksum, and modification time


isLink

public boolean isLink()
Return whether this entry is a link to another file. This is denoted by it being of type l (hard link) or type s (symbolic link).


getDescriptiveType

public java.lang.String getDescriptiveType()
Return the type of this entry as a descriptive String.