Methods Summary |
---|
public java.lang.String | getLabel()
return label;
|
public byte | getType()
return type;
|
public boolean | isPrimary()
return isPrimary;
|
public void | setIsPrimary(boolean primary)
isPrimary = primary;
|
public void | setLabel(java.lang.String label)
this.label = label;
|
public void | setType(byte rel)
this.type = rel;
|
public void | toString(java.lang.StringBuffer sb)
sb.append(" type:").append(type);
sb.append(" isPrimary:").append(isPrimary);
if (label != null) sb.append(" label:").append(label);
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer();
toString(sb);
return sb.toString();
|
public void | validate()
if ((label == null && type == TYPE_NONE) || (label != null && type != TYPE_NONE)) {
throw new ParseException("exactly one of label or type must be set");
}
|