| Method from net.sourceforge.harness.xml.jaxb.Description Detail: |
public boolean equals(Object ob) {
if (this == ob) {
return true;
}
if (!(ob instanceof Description)) {
return false;
}
Description tob = ((Description) ob);
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 String getContent() {
return _Content;
}
|
public int hashCode() {
int h = 0;
h = ((127 * h) + ((_Content != null) ? _Content.hashCode() : 0));
return h;
}
|
public void marshal(Marshaller m) throws IOException {
XMLWriter w = m.writer();
w.start("description");
if (_Content != null) {
w.chars(_Content.toString());
}
w.end("description");
}
|
public static Dispatcher newDispatcher() {
return Author.newDispatcher();
}
|
public void setContent(String _Content) {
this._Content = _Content;
if (_Content == null) {
invalidate();
}
}
|
public String toString() {
StringBuffer sb = new StringBuffer("< < description");
if (_Content != null) {
sb.append(" content=");
sb.append(_Content.toString());
}
sb.append(" > >");
return sb.toString();
}
|
public void unmarshal(Unmarshaller u) throws UnmarshalException {
XMLScanner xs = u.scanner();
Validator v = u.validator();
xs.takeStart("description");
while (xs.atAttribute()) {
String an = xs.takeAttributeName();
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("description");
}
|
public static Description unmarshal(InputStream in) throws UnmarshalException {
return unmarshal(XMLScanner.open(in));
}
|
public static Description unmarshal(XMLScanner xs) throws UnmarshalException {
return unmarshal(xs, newDispatcher());
}
|
public static Description unmarshal(XMLScanner xs,
Dispatcher d) throws UnmarshalException {
return ((Description) d.unmarshal(xs, (Description.class)));
}
|
public void validate(Validator v) throws StructureValidationException {
}
|
public void validateThis() throws LocalValidationException {
}
|