Methods Summary |
---|
public void | deleteProducer()
_Producer = null;
invalidate();
|
public void | emptyProducer()
_Producer = PredicatedLists.createInvalidating(this, pred_Producer, new ArrayList());
|
public boolean | equals(java.lang.Object ob)
if (this == ob) {
return true;
}
if (!(ob instanceof Movie)) {
return false;
}
Movie tob = ((Movie) ob);
if (_Title!= null) {
if (tob._Title == null) {
return false;
}
if (!_Title.equals(tob._Title)) {
return false;
}
} else {
if (tob._Title!= null) {
return false;
}
}
if (_Cast!= null) {
if (tob._Cast == null) {
return false;
}
if (!_Cast.equals(tob._Cast)) {
return false;
}
} else {
if (tob._Cast!= null) {
return false;
}
}
if (_Director!= null) {
if (tob._Director == null) {
return false;
}
if (!_Director.equals(tob._Director)) {
return false;
}
} else {
if (tob._Director!= null) {
return false;
}
}
if (_Producer!= null) {
if (tob._Producer == null) {
return false;
}
if (!_Producer.equals(tob._Producer)) {
return false;
}
} else {
if (tob._Producer!= null) {
return false;
}
}
return true;
|
public javajaxb.generated.movies.Cast | getCast()
return _Cast;
|
public java.lang.String | getDirector()
return _Director;
|
public java.util.List | getProducer()
return _Producer;
|
public java.lang.String | getTitle()
return _Title;
|
public int | hashCode()
int h = 0;
h = ((127 *h)+((_Title!= null)?_Title.hashCode(): 0));
h = ((127 *h)+((_Cast!= null)?_Cast.hashCode(): 0));
h = ((127 *h)+((_Director!= null)?_Director.hashCode(): 0));
h = ((127 *h)+((_Producer!= null)?_Producer.hashCode(): 0));
return h;
|
public void | marshal(javax.xml.bind.Marshaller m)
XMLWriter w = m.writer();
w.start("movie");
w.leaf("title", _Title.toString());
m.marshal(_Cast);
if (_Director!= null) {
w.leaf("director", _Director.toString());
}
for (Iterator i = _Producer.iterator(); i.hasNext(); ) {
w.leaf("producer", ((String) i.next()).toString());
}
w.end("movie");
|
public static javax.xml.bind.Dispatcher | newDispatcher()
return Actor.newDispatcher();
|
public void | setCast(javajaxb.generated.movies.Cast _Cast)
this._Cast = _Cast;
if (_Cast == null) {
invalidate();
}
|
public void | setDirector(java.lang.String _Director)
this._Director = _Director;
if (_Director == null) {
invalidate();
}
|
public void | setTitle(java.lang.String _Title)
this._Title = _Title;
if (_Title == null) {
invalidate();
}
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer("<<movie");
if (_Title!= null) {
sb.append(" title=");
sb.append(_Title.toString());
}
if (_Cast!= null) {
sb.append(" cast=");
sb.append(_Cast.toString());
}
if (_Director!= null) {
sb.append(" director=");
sb.append(_Director.toString());
}
if (_Producer!= null) {
sb.append(" producer=");
sb.append(_Producer.toString());
}
sb.append(">>");
return sb.toString();
|
public void | unmarshal(javax.xml.bind.Unmarshaller u)
XMLScanner xs = u.scanner();
Validator v = u.validator();
xs.takeStart("movie");
while (xs.atAttribute()) {
String an = xs.takeAttributeName();
throw new InvalidAttributeException(an);
}
if (xs.atStart("title")) {
xs.takeStart("title");
String s;
if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
s = xs.takeChars(XMLScanner.WS_COLLAPSE);
} else {
s = "";
}
try {
_Title = String.valueOf(s);
} catch (Exception x) {
throw new ConversionException("title", x);
}
xs.takeEnd("title");
}
_Cast = ((Cast) u.unmarshal());
if (xs.atStart("director")) {
xs.takeStart("director");
String s;
if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
s = xs.takeChars(XMLScanner.WS_COLLAPSE);
} else {
s = "";
}
try {
_Director = String.valueOf(s);
} catch (Exception x) {
throw new ConversionException("director", x);
}
xs.takeEnd("director");
}
{
List l = new ArrayList();
while (xs.atStart()) {
if (xs.atStart("producer")) {
xs.takeStart("producer");
String s;
if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
s = xs.takeChars(XMLScanner.WS_COLLAPSE);
} else {
s = "";
}
String uf;
try {
uf = String.valueOf(s);
} catch (Exception x) {
throw new ConversionException("producer", x);
}
l.add(uf);
xs.takeEnd("producer");
} else {
break;
}
}
_Producer = PredicatedLists.createInvalidating(this, pred_Producer, l);
}
xs.takeEnd("movie");
|
public static javajaxb.generated.movies.Movie | unmarshal(java.io.InputStream in)
return unmarshal(XMLScanner.open(in));
|
public static javajaxb.generated.movies.Movie | unmarshal(javax.xml.marshal.XMLScanner xs)
return unmarshal(xs, newDispatcher());
|
public static javajaxb.generated.movies.Movie | unmarshal(javax.xml.marshal.XMLScanner xs, javax.xml.bind.Dispatcher d)
return ((Movie) d.unmarshal(xs, (Movie.class)));
|
public void | validate(javax.xml.bind.Validator v)
v.validate(_Cast);
|
public void | validateThis()
if (_Title == null) {
throw new MissingContentException("title");
}
if (_Cast == null) {
throw new MissingContentException("cast");
}
|