com.sun.jaw.impl.common
Class LibraryDefinition

java.lang.Object
  |
  +--com.sun.jaw.impl.common.LibraryDefinition

public class LibraryDefinition
extends java.lang.Object
implements java.io.Serializable

A LibraryDefinition is a machine neutral definition for a native library.

Eventually this class will also have the means to validate and verify that the library has come from a trusted source and the class has not been changed.

See Also:
Serialized Form

Constructor Summary
LibraryDefinition()
          This constructor creates an empty, but initialized LibraryDefinition.
 
Method Summary
 java.lang.String getClassVersion()
          Returns the version of this class.
 byte[] getImage()
          Gets the bytes that define this class.
 java.lang.String getLibBaseName()
          Gets the library base path name associated with this definition.
 java.lang.String getLibName()
          Gets the library name associated with this definition.
 long getLibVersion()
          Gets the library version number for the library associated with this definition.
 java.lang.String getNativeName()
          Returns the platform specific library name.
 java.lang.String getOSArch()
          Gets the machine architecture associated with this definition.
 java.lang.String getOSName()
          Gets the operating system name associated with this definition.
 java.lang.String getOSVersion()
          Gets the operating system version associated with this definition.
 java.lang.String getRelativePath()
          Returns a relative pathname for a library that expresses the portion of the path beneath the library base path.
 void setByteImage(java.io.File file_obj)
          Copies the actual library bytes into the byteImage byte array attribute.
 void setLibBaseName(java.lang.String baseName)
          Sets the library base path name associated with this definition.
 void setLibName(java.lang.String name)
          Sets the library name associated with this definition.
 void setLibVersion(long version)
          Sets the library version number for the library associated with this definition.
 void setNativeName(java.lang.String libname)
          Sets the platform specific library name.
 void setOSArch(java.lang.String arch)
          Sets the machine architecture associated with this definition.
 void setOSName(java.lang.String name)
          Sets the operating system name associated with this definition.
 void setOSVersion(java.lang.String version)
          Sets the operating system version associated with this definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryDefinition

public LibraryDefinition()
This constructor creates an empty, but initialized LibraryDefinition.
Method Detail

getImage

public byte[] getImage()
Gets the bytes that define this class.

setByteImage

public void setByteImage(java.io.File file_obj)
                  throws java.io.IOException
Copies the actual library bytes into the byteImage byte array attribute.
Throws:
java.io.IOException - Signals that an I/O exception of some sort has occurred.

getLibName

public java.lang.String getLibName()
Gets the library name associated with this definition.

setLibName

public void setLibName(java.lang.String name)
Sets the library name associated with this definition.

getLibBaseName

public java.lang.String getLibBaseName()
Gets the library base path name associated with this definition.

setLibBaseName

public void setLibBaseName(java.lang.String baseName)
Sets the library base path name associated with this definition.

getLibVersion

public long getLibVersion()
Gets the library version number for the library associated with this definition.

setLibVersion

public void setLibVersion(long version)
Sets the library version number for the library associated with this definition. It accepts a long argument that is the system version number.

getOSName

public java.lang.String getOSName()
Gets the operating system name associated with this definition.

setOSName

public void setOSName(java.lang.String name)
Sets the operating system name associated with this definition.

getOSArch

public java.lang.String getOSArch()
Gets the machine architecture associated with this definition.

setOSArch

public void setOSArch(java.lang.String arch)
Sets the machine architecture associated with this definition.

getOSVersion

public java.lang.String getOSVersion()
Gets the operating system version associated with this definition.

setOSVersion

public void setOSVersion(java.lang.String version)
Sets the operating system version associated with this definition.

getRelativePath

public java.lang.String getRelativePath()
Returns a relative pathname for a library that expresses the portion of the path beneath the library base path. The file separator is determined from the runtime.

getNativeName

public java.lang.String getNativeName()
Returns the platform specific library name.
Returns:
The platform specific library name.

setNativeName

public void setNativeName(java.lang.String libname)
Sets the platform specific library name.
Parameters:
libname - The library name.

getClassVersion

public java.lang.String getClassVersion()
Returns the version of this class.