paul_oshea
2009-07-22 20:48:53 UTC
I have created a custom wrapper for a string, but i am unable to map it
getting an illegal text exception thingie.
So I have a class animal, which contains an object of type Cat and Cat
contains a wrapper called MyWrapper which holds a string so like this:
class Animal
private Cat cat;
public Cat getCat() {
return cat
}
class Cat
private MyWrapper myWrapper;
public MyWrapper getMyWrapper() {
return myWrapper
}
class MyWrapper
private String typeOfCat;
public String getTypeOfCat() {
}
This is what I want my input xml to look like as its coming from an outside
source and I cant edit the original xml
test String
name="cat" node="element" />
name="myWrapper" node="element" /> ***
Do I need to put in the location keyword above where the *** is? OR is this
not possible at all?
Thanks for any help
pos
getting an illegal text exception thingie.
So I have a class animal, which contains an object of type Cat and Cat
contains a wrapper called MyWrapper which holds a string so like this:
class Animal
private Cat cat;
public Cat getCat() {
return cat
}
class Cat
private MyWrapper myWrapper;
public MyWrapper getMyWrapper() {
return myWrapper
}
class MyWrapper
private String typeOfCat;
public String getTypeOfCat() {
}
This is what I want my input xml to look like as its coming from an outside
source and I cant edit the original xml
test String
name="cat" node="element" />
name="myWrapper" node="element" /> ***
Do I need to put in the location keyword above where the *** is? OR is this
not possible at all?
Thanks for any help
pos
--
View this message in context: http://www.nabble.com/custom-Wrapper-object-of-a-primitive-tp24614282p24614282.html
Sent from the Castor - Dev mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/custom-Wrapper-object-of-a-primitive-tp24614282p24614282.html
Sent from the Castor - Dev mailing list archive at Nabble.com.