Package com.dassault_systemes.catweb.documents

   
Class Document

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catweb.documents.Document
Class Location

Framework : PortalBase

Module : PLBdocuments

Class Description

public class Document

Basic Document Class

   All Implemented Interfaces:
PersistableAsXML
Cloneable
Field Summary
protected String extension
protected String pathName
protected float unit
protected String url
protected byte[] UUID
protected float[] xform
public static String XML_CLASSNAME
protected static String XML_EXTENSION
protected static String XML_PATHNAME
public static String XML_TAG
protected static final byte[] zero_UUID

Constructor Summary
Document(Document doc)
Copy Constructor
Document(byte[] _UUID, String _pathName)
Constructor with uuid and path name parameters.
Document()
The default constructor.
Document(String _pathName)
Constructor with pathanme.

Method Summary
public void copy(Document d)
public static Document createDocumentFromURL(String url)
public void dispose()
public Document duplicate()
public String getExtension()
Returns the extension of the document
public float getModelUnit()
Returns the model unit used.
public String getPathName()
Returns the path name of the document
public String getPortalURLString()
public byte[] getUUID()
Returns the UUID of the document
public float[] getXForm()
public boolean isEqual(Object o)
Compares the equality of an object with this instance
public boolean isZeroUUID()
public void setExtension(String newExtension)
Sets the extension of the document
public void setModelUnit(float _unit)
Sets the momdel unit used.
public void setPathName(String _pathName)
Sets the path name of the document
public void setURL(String url)
public void setUUID(byte[] uuid)
Sets the uuid of the document
public void setXForm(float[] _xform)
public String toString()
Constructs and returns a string representation of this Document.


Field Detail

extension

    protected String extension


pathName

    protected String pathName


unit

    protected float unit


url

    protected String url


UUID

    protected byte[] UUID


xform

    protected float[] xform


XML_CLASSNAME

    public static String XML_CLASSNAME


XML_EXTENSION

    protected static String XML_EXTENSION


XML_PATHNAME

    protected static String XML_PATHNAME


XML_TAG

    public static String XML_TAG


zero_UUID

    protected static final byte[] zero_UUID


Constructor Detail

Document

    Document(Document doc)

Copy Constructor

Parameters:
doc
- the Document to copy.

Document

    Document(byte[] _UUID, String _pathName)

Constructor with uuid and path name parameters.

Parameters:
_UUID
- the uuid of the document.
_pathName
- the path name of the document.

Document

    Document()

The default constructor.


Document

    Document(String _pathName)

Constructor with pathanme.

Parameters:
_pathName
- the path name of the document.

Method Detail

copy

    public void copy(Document d)


createDocumentFromURL

    public static Document createDocumentFromURL(String url)


dispose

    public void dispose()


duplicate

    public Document duplicate()


getExtension

    public String getExtension()

Returns the extension of the document


getModelUnit

    public float getModelUnit()

Returns the model unit used.


getPathName

    public String getPathName()

Returns the path name of the document


getPortalURLString

    public String getPortalURLString()


getUUID

    public byte[] getUUID()

Returns the UUID of the document


getXForm

    public float[] getXForm()


isEqual

    public boolean isEqual(Object o)

Compares the equality of an object with this instance

Parameters:
o
- the object to compare with this instance

isZeroUUID

    public boolean isZeroUUID()


setExtension

    public void setExtension(String newExtension)

Sets the extension of the document


setModelUnit

    public void setModelUnit(float _unit)

Sets the momdel unit used.


setPathName

    public void setPathName(String _pathName)

Sets the path name of the document


setURL

    public void setURL(String url)


setUUID

    public void setUUID(byte[] uuid)

Sets the uuid of the document


setXForm

    public void setXForm(float[] _xform)


toString

    public String toString()

Constructs and returns a string representation of this Document.



Copyright © 2000, Dassault Systèmes. All rights reserved