All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.relaxng.edit.ElementAnnotation Maven / Gradle / Ivy

package com.thaiopensource.relaxng.edit;

import java.util.List;
import java.util.Vector;

public class ElementAnnotation extends AnnotationChild {
  private String namespaceUri;
  private String localName;
  private String prefix;
  private NamespaceContext context;
  private final List attributes = new Vector();
  private final List children = new Vector();

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

  public List getAttributes() {
    return attributes;
  }

  public List getChildren() {
    return children;
  }

  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 NamespaceContext getContext() {
    return context;
  }

  public void setContext(NamespaceContext context) {
    this.context = context;
  }

  public  T accept(AnnotationChildVisitor visitor) {
    return visitor.visitElement(this);
  }

  public void attributesAccept(AttributeAnnotationVisitor visitor) {
    for (AttributeAnnotation a : attributes)
      a.accept(visitor);
  }

  public void childrenAccept(AnnotationChildVisitor visitor) {
    for (AnnotationChild c : children)
      c.accept(visitor);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy