package com.thaiopensource.relaxng.edit;

public class NameNameClass extends NameClass {
  private String namespaceUri;
  private String localName;
  private String prefix;

  public NameNameClass(String namespaceUri, String localName) {
    this.namespaceUri = namespaceUri;
    this.localName = localName;
  }

  public String getNamespaceUri() {
    return namespaceUri;
  }

  public void setNamespaceUri(String namespaceUri) {
    this.namespaceUri = namespaceUri;
  }

  public String getLocalName() {
    return localName;
  }

  public void setLocalName(String localName) {
    this.localName = localName;
  }

  public String getPrefix() {
    return prefix;
  }

  public void setPrefix(String prefix) {
    this.prefix = prefix;
  }

  public boolean mayContainText() {
    return true;
  }

  public Object accept(NameClassVisitor visitor) {
    return visitor.visitName(this);
  }
}

@@ -618,59 +618,213 @@
 %0A%0A  
-public String getPrefix() %7B%0A    return prefix;%0A  %7D%0A
+/**%0A   * Returns non-empty string or null if there was no prefix.%0A   */%0A  public String getPrefix() %7B%0A    return prefix;%0A  %7D%0A%0A  /**%0A   * prefix must be non-empty string or null if there is no prefix.%0A   */
 %0A  p

Add comment