Exemplo n.º 1
0
 void setParent(Context context) {
   this._parent = context;
   // inherits namespaces from the given parent context
   // to the current context.
   this.namespaces.putAll(context.getNamespaces());
   this.insertOrder.addAll(context.insertOrder);
 }
Exemplo n.º 2
0
 String getPrefix(int index) {
   // take a thought of parent's namespaces.
   final int i = (_parent == null ? 0 : _parent.getNamespaces().size()) + index;
   return insertOrder.get(i);
 }
Exemplo n.º 3
0
 int getNamespaceCount() {
   return this.namespaces.size() - (_parent == null ? 0 : _parent.getNamespaces().size());
 }