You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Deepth Dinesan <di...@india.adventnet.com> on 2002/09/18 16:21:27 UTC
Deserializers for Immutable classes
Hello ,
How do I write a deserializer for an Immutable Class .
the class is as follows
Class GloballyUniqueIdentifier {
public String domainName;
public HashMap keyValuePairs;
public long firstSixtyFourBit;
public long nextSixtyFourBits;
public GloballyUniqueIdentifier(String s, HashMap hm,longl1,longl2){
domainName=s;
hm=keyValuePairs;
firstSixtyFourBit=l1;
nextSixtyFourBit=l2;
}
public (String s, long l1,long l2 ){
domainName=s;
firstSixtyFourBit=l1;
nextSixtyFourBit=l2;
//parse the domainName and populate the keyvalue pairs
}
//getters
public String getDomainName (){ ...} //and so on
getKeyValuePairs(){...}
getfirstSixtyFourBits() {....}
getNextSixtyFourBits() {....}
}
ThanX
Deepth
--
"You have Brains in Your Head,You have feet in your Shoes"
"You can steer yourself any direction you choose"