Package com.sun.xml.fastinfoset.util
Class PrefixArray
- java.lang.Object
-
- com.sun.xml.fastinfoset.util.ValueArray
-
- com.sun.xml.fastinfoset.util.PrefixArray
-
public class PrefixArray extends ValueArray
-
-
Field Summary
Fields Modifier and Type Field Description String[]_arrayint[]_currentInScopeint_declarationIdstatic intPREFIX_MAP_SIZE-
Fields inherited from class com.sun.xml.fastinfoset.util.ValueArray
_maximumCapacity, _readOnlyArraySize, _size, DEFAULT_CAPACITY, MAXIMUM_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description PrefixArray()PrefixArray(int initialCapacity, int maximumCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intadd(String s)voidclear()voidclearCompletely()voidclearDeclarationIds()intcountNamespacePool()intcountPrefixPool()Stringget(int i)String[]getArray()Returns cloned version of internal String[].String[]getCompleteArray()StringgetNamespaceFromPrefix(String prefix)IteratorgetPrefixes()IteratorgetPrefixesFromNamespace(String namespaceName)StringgetPrefixFromNamespace(String namespaceName)voidpopScope(int prefixIndex)voidpopScopeWithPrefixEntry(int prefixIndex)voidpushScope(int prefixIndex, int namespaceIndex)voidpushScopeWithPrefixEntry(String prefix, String namespaceName, int prefixIndex, int namespaceIndex)protected voidresize()voidsetReadOnlyArray(PrefixArray readOnlyArray, boolean clear)voidsetReadOnlyArray(ValueArray readOnlyArray, boolean clear)-
Methods inherited from class com.sun.xml.fastinfoset.util.ValueArray
getMaximumCapacity, getSize, setMaximumCapacity
-
-
-
-
Field Detail
-
PREFIX_MAP_SIZE
public static final int PREFIX_MAP_SIZE
- See Also:
- Constant Field Values
-
_array
public String[] _array
-
_currentInScope
public int[] _currentInScope
-
_declarationId
public int _declarationId
-
-
Method Detail
-
countNamespacePool
public int countNamespacePool()
-
countPrefixPool
public int countPrefixPool()
-
clear
public final void clear()
- Specified by:
clearin classValueArray
-
clearCompletely
public final void clearCompletely()
-
getArray
public final String[] getArray()
Returns cloned version of internal String[].- Returns:
- cloned version of internal String[].
-
setReadOnlyArray
public final void setReadOnlyArray(ValueArray readOnlyArray, boolean clear)
- Specified by:
setReadOnlyArrayin classValueArray
-
setReadOnlyArray
public final void setReadOnlyArray(PrefixArray readOnlyArray, boolean clear)
-
getCompleteArray
public final String[] getCompleteArray()
-
get
public final String get(int i)
-
add
public final int add(String s)
-
resize
protected final void resize()
-
clearDeclarationIds
public final void clearDeclarationIds()
-
pushScope
public final void pushScope(int prefixIndex, int namespaceIndex) throws FastInfosetException- Throws:
FastInfosetException
-
pushScopeWithPrefixEntry
public final void pushScopeWithPrefixEntry(String prefix, String namespaceName, int prefixIndex, int namespaceIndex) throws FastInfosetException
- Throws:
FastInfosetException
-
popScope
public final void popScope(int prefixIndex)
-
popScopeWithPrefixEntry
public final void popScopeWithPrefixEntry(int prefixIndex)
-
getPrefixes
public final Iterator getPrefixes()
-
-