Methods Summary |
---|
public boolean | defaultedHeadliner()
return (_Headliner!= null);
|
public boolean | equals(java.lang.Object ob)
if (this == ob) {
return true;
}
if (!(ob instanceof Actor)) {
return false;
}
Actor tob = ((Actor) ob);
if (_Headliner!= null) {
if (tob._Headliner == null) {
return false;
}
if (!_Headliner.equals(tob._Headliner)) {
return false;
}
} else {
if (tob._Headliner!= null) {
return false;
}
}
if (_Content!= null) {
if (tob._Content == null) {
return false;
}
if (!_Content.equals(tob._Content)) {
return false;
}
} else {
if (tob._Content!= null) {
return false;
}
}
return true;
|
public java.lang.String | getContent()
return _Content;
|
public java.lang.String | getHeadliner()
if (_Headliner == null) {
return DEFAULT_HEADLINER;
}
return _Headliner;
|
public int | hashCode()
int h = 0;
h = ((127 *h)+((_Headliner!= null)?_Headliner.hashCode(): 0));
h = ((127 *h)+((_Content!= null)?_Content.hashCode(): 0));
return h;
|
public void | marshal(javax.xml.bind.Marshaller m)
XMLWriter w = m.writer();
w.start("actor");
if (_Headliner!= null) {
w.attribute("headliner", _Headliner.toString());
}
if (_Content!= null) {
w.chars(_Content.toString());
}
w.end("actor");
|
public static javax.xml.bind.Dispatcher | newDispatcher()
Dispatcher d = new Dispatcher();
d.register("actor", (Actor.class));
d.register("cast", (Cast.class));
d.register("movie", (Movie.class));
d.register("movies", (Movies.class));
d.freezeElementNameMap();
return d;
|
public void | setContent(java.lang.String _Content)
this._Content = _Content;
if (_Content == null) {
invalidate();
}
|
public void | setHeadliner(java.lang.String _Headliner)
this._Headliner = _Headliner;
if (_Headliner == null) {
invalidate();
}
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer("<<actor");
sb.append(" headliner=");
sb.append(getHeadliner().toString());
if (_Content!= null) {
sb.append(" content=");
sb.append(_Content.toString());
}
sb.append(">>");
return sb.toString();
|
public static javajaxb.generated.movies.Actor | unmarshal(java.io.InputStream in)
return unmarshal(XMLScanner.open(in));
|
public static javajaxb.generated.movies.Actor | unmarshal(javax.xml.marshal.XMLScanner xs)
return unmarshal(xs, newDispatcher());
|
public static javajaxb.generated.movies.Actor | unmarshal(javax.xml.marshal.XMLScanner xs, javax.xml.bind.Dispatcher d)
return ((Actor) d.unmarshal(xs, (Actor.class)));
|
public void | unmarshal(javax.xml.bind.Unmarshaller u)
XMLScanner xs = u.scanner();
Validator v = u.validator();
xs.takeStart("actor");
while (xs.atAttribute()) {
String an = xs.takeAttributeName();
if (an.equals("headliner")) {
if (_Headliner!= null) {
throw new DuplicateAttributeException(an);
}
_Headliner = xs.takeAttributeValue();
continue;
}
throw new InvalidAttributeException(an);
}
{
String s;
if (xs.atChars(XMLScanner.WS_COLLAPSE)) {
s = xs.takeChars(XMLScanner.WS_COLLAPSE);
} else {
s = "";
}
try {
_Content = String.valueOf(s);
} catch (Exception x) {
throw new ConversionException("content", x);
}
}
xs.takeEnd("actor");
|
public void | validate(javax.xml.bind.Validator v)
|
public void | validateThis()
|