|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd._2009.xml.licencetype.XLptsLicenceType
com.lapetus_ltd.api.xml.types.TLptsLicenceType
public class TLptsLicenceType
Class Description : This class is derived from the XSD generated Licence Type.
Field Summary |
---|
Fields inherited from class com.lapetus_ltd._2009.xml.licencetype.XLptsLicenceType |
---|
byteData1, byteData2, byteData3, byteData4, description, expiryDate, id, licencedTo, licenceType, noOfLicences, onlyOnIp, onlyOnMac, onlyOnOs, rights, softwareOwner, title, violations |
Constructor Summary | |
---|---|
TLptsLicenceType()
This constructor initiates the licence type. |
|
TLptsLicenceType(XLptsLicenceType licenceType)
This constructor copies the driver information from an XLptsLicenceType. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
Methods inherited from class com.lapetus_ltd._2009.xml.licencetype.XLptsLicenceType |
---|
getByteData1, getByteData2, getByteData3, getByteData4, getDescription, getExpiryDate, getId, getLicencedTo, getLicenceType, getNoOfLicences, getOnlyOnIp, getOnlyOnMac, getOnlyOnOs, getRights, getSoftwareOwner, getTitle, getViolations, setByteData1, setByteData2, setByteData3, setByteData4, setDescription, setExpiryDate, setId, setLicencedTo, setLicenceType, setNoOfLicences, setOnlyOnIp, setOnlyOnMac, setOnlyOnOs, setRights, setSoftwareOwner, setTitle, setViolations |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLptsLicenceType()
This constructor initiates the licence type.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes :
Example :
TLptsLicenceType lt = new TLptsLicenceType();
public TLptsLicenceType(XLptsLicenceType licenceType)
This constructor copies the driver information from an XLptsLicenceType.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Use this function every time you need to copy or instantiate a type XLptsLicenceType class.
Example :
public void example(XLptsLicenceType licenceType) { TLptsLicenceType lt = new TLptsLicenceType(licenceType); }
licenceType
- the class object to copy.Method Detail |
---|
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
will be true, and that the expression:x.clone() != x
will be true, but these are not absolute requirements. While it is typically the case that:x.clone().getClass() == x.getClass()
will be true, this is not an absolute requirement. By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass(). By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified. The method clone for class Object performs a specific cloning operation. First, if the class of this object does not implement the interface Cloneable, then a CloneNotSupportedException is thrown. Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation. The class Object does not itself implement the interface Cloneable, so calling the clone method on an object whose class is Object will result in throwing an exception at run time.x.clone().equals(x)
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- the stream to read data from in order to restore the object
java.io.IOException
- if I/O errors occur
java.lang.ClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- the stream to write the object to
java.io.IOException
- Includes any I/O exceptions that may occur
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |