Package com.fasterxml.aalto.in
Class ByteBasedPName
- java.lang.Object
-
- com.fasterxml.aalto.in.PName
-
- com.fasterxml.aalto.in.ByteBasedPName
-
public abstract class ByteBasedPName extends PName
This intermediate abstract class defines more specialized API needed by components like symbol tables, which need to provide efficient access to byte-based PNames. Byte-based names can be used to directly convert byte sequences to actual character-based names, without intervening byte-to-character decoding phase.
-
-
Field Summary
Fields Modifier and Type Field Description protected intmHashSince the hash is calculated different from the way eventual String's hash will be (bit faster, not significantly worse hashing uniformness), we need to store that hash here.-
Fields inherited from class com.fasterxml.aalto.in.PName
_localName, _namespaceBinding, _prefix, _prefixedName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedByteBasedPName(java.lang.String pname, java.lang.String prefix, java.lang.String ln, int hash)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(int[] quads, int qlen)abstract booleanequals(int quad1, int quad2)abstract intgetFirstQuad()abstract intgetQuad(int index)inthashCode()Whether we should use internal hash, or the hash of prefixed name string itself is an open question.abstract booleanhashEquals(int h, int[] quads, int qlen)abstract booleanhashEquals(int h, int quad1, int quad2)abstract intsizeInQuads()-
Methods inherited from class com.fasterxml.aalto.in.PName
boundEquals, boundEquals, boundHashCode, boundHashCode, constructQName, constructQName, createBoundName, equals, getLastQuad, getLocalName, getNsBinding, getNsUri, getPrefix, getPrefixedName, hasPrefix, hasPrefixedName, isBound, needsBinding, toString, unboundEquals, unboundHashCode
-
-
-
-
Method Detail
-
getFirstQuad
public abstract int getFirstQuad()
- Specified by:
getFirstQuadin classPName
-
sizeInQuads
public abstract int sizeInQuads()
- Specified by:
sizeInQuadsin classPName
-
equals
public abstract boolean equals(int quad1, int quad2)
-
equals
public abstract boolean equals(int[] quads, int qlen)
-
hashEquals
public abstract boolean hashEquals(int h, int quad1, int quad2)
-
hashEquals
public abstract boolean hashEquals(int h, int[] quads, int qlen)
-
-