| Method from net.sourceforge.harness.xml.jaxb.PathElement Detail: |
public boolean equals(Object ob) {
if (this == ob) {
return true;
}
if (!(ob instanceof PathElement)) {
return false;
}
PathElement tob = ((PathElement) ob);
if (_Path != null) {
if (tob._Path == null) {
return false;
}
if (!_Path.equals(tob._Path)) {
return false;
}
} else {
if (tob._Path != null) {
return false;
}
}
return true;
}
|
public String getPath() {
return _Path;
}
|
public int hashCode() {
int h = 0;
h = ((127 * h) + ((_Path != null) ? _Path.hashCode() : 0));
return h;
}
|
public void marshal(Marshaller m) throws IOException {
XMLWriter w = m.writer();
w.start("pathElement");
w.attribute("path", _Path.toString());
w.end("pathElement");
}
|
public static Dispatcher newDispatcher() {
return Author.newDispatcher();
}
|
public void setPath(String _Path) {
this._Path = _Path;
if (_Path == null) {
invalidate();
}
}
|
public String toString() {
StringBuffer sb = new StringBuffer("< < pathElement");
if (_Path != null) {
sb.append(" path=");
sb.append(_Path.toString());
}
sb.append(" > >");
return sb.toString();
}
|
public void unmarshal(Unmarshaller u) throws UnmarshalException {
XMLScanner xs = u.scanner();
Validator v = u.validator();
xs.takeStart("pathElement");
while (xs.atAttribute()) {
String an = xs.takeAttributeName();
if (an.equals("path")) {
if (_Path != null) {
throw new DuplicateAttributeException(an);
}
_Path = xs.takeAttributeValue();
continue;
}
throw new InvalidAttributeException(an);
}
xs.takeEnd("pathElement");
}
|
public static PathElement unmarshal(InputStream in) throws UnmarshalException {
return unmarshal(XMLScanner.open(in));
}
|
public static PathElement unmarshal(XMLScanner xs) throws UnmarshalException {
return unmarshal(xs, newDispatcher());
}
|
public static PathElement unmarshal(XMLScanner xs,
Dispatcher d) throws UnmarshalException {
return ((PathElement) d.unmarshal(xs, (PathElement.class)));
}
|
public void validate(Validator v) throws StructureValidationException {
}
|
public void validateThis() throws LocalValidationException {
if (_Path == null) {
throw new MissingAttributeException("path");
}
}
|