Class NsDeclaration
java.lang.Object
com.fasterxml.aalto.in.NsDeclaration
This class encapsulates information about a namespace binding declaration,
associated with start elements. Declarations are stored as a linked list,
to minimize fixed allocations, and since they only need to be accessed
directly when dealing with START_ELEMENT and END_ELEMENT, not when
binding element or attribute names.
-
Constructor Summary
ConstructorsConstructorDescriptionNsDeclaration(com.fasterxml.aalto.in.NsBinding binding, String newURI, NsDeclaration prevDecl, int level) -
Method Summary
Modifier and TypeMethodDescriptionbooleanalreadyDeclared(String prefix, int level) intcountDeclsOnLevel(int level) com.fasterxml.aalto.in.NsBindingintgetLevel()getPrev()booleanbooleantoString()unbind()Method called after END_ELEMENT is processed, to unbind declaration that now goes out of scope
-
Constructor Details
-
NsDeclaration
public NsDeclaration(com.fasterxml.aalto.in.NsBinding binding, String newURI, NsDeclaration prevDecl, int level)
-
-
Method Details
-
getLevel
public int getLevel() -
getPrev
-
getBinding
public com.fasterxml.aalto.in.NsBinding getBinding() -
getPrefix
-
getCurrNsURI
-
hasPrefix
-
hasNsURI
-
unbind
Method called after END_ELEMENT is processed, to unbind declaration that now goes out of scope -
alreadyDeclared
-
countDeclsOnLevel
public int countDeclsOnLevel(int level) -
toString
-