public final class SOAPArrayType extends Object
Constructor and Description |
---|
SOAPArrayType(QName name,
String dimensions)
Parses SOAP 1.1(advanced) array type strings.
|
SOAPArrayType(SOAPArrayType nested,
int[] dimensions)
Given a nested SOAPArrayType and a set of dimensions for the outermost
array, comes up with the right SOAPArrayType for the whole thing.
|
SOAPArrayType(String s,
PrefixResolver m)
Parses a SOAP 1.1 array type string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsNestedArrays()
True if this array contains nested arrays.
|
boolean |
equals(Object obj) |
int[] |
getDimensions()
Returns the array of dimensions.
|
QName |
getQName()
Returns the QName for the referenced type.
|
int[] |
getRanks()
Returns the array of ranks for inner nested arrays.
|
int |
hashCode() |
boolean |
isSameRankAs(SOAPArrayType otherType)
True if the ranks for the passed SOAPArrayType
are equal to this one.
|
SOAPArrayType |
nestedArrayType()
Constructs a SOAPArrayType reflecting the dimensions
of the next nested array.
|
static SOAPArrayType |
newSoap12Array(QName itemType,
String arraySize)
SOAP 1.2
Constructs a SOAPArrayType from soap-enc:itemType and
soap-enc:arraySize attributes
|
String |
soap11DimensionString()
Returns the dimensions as a string, e.g., [,][2,3,4]
|
String |
soap11DimensionString(int[] actualDimensions)
Given an actual set of dimensions that may differ from
the default that is stored, outputs the soap arrayType
string.
|
String |
soap12DimensionString(int[] actualDimensions)
SOAP 1.2
Given an actual set of dimensions that may differ from
the default that is stored, outputs the soap arraySize
string.
|
public SOAPArrayType(String s, PrefixResolver m)
Since an array type string contains a QName, a prefix resolver must be passed.
public SOAPArrayType(QName name, String dimensions)
Since in SOAP 1.1(advanced) the dimension specification is separated from the QName for the underlying type, these are passed in separate arguments.
public SOAPArrayType(SOAPArrayType nested, int[] dimensions)
E.g., Nested foo:bar[,][][,,][1,2] Dimensions [6,7,8] Result -> foo:bar[,][][,,][,][6,7,8]
public boolean isSameRankAs(SOAPArrayType otherType)
Does NOT compare the _type fields.
public QName getQName()
public int[] getRanks()
public int[] getDimensions()
public boolean containsNestedArrays()
public String soap11DimensionString()
public String soap11DimensionString(int[] actualDimensions)
public static SOAPArrayType newSoap12Array(QName itemType, String arraySize)
itemType
- the item type QNamearraySize
- a string with dimentions like: * 3 4public String soap12DimensionString(int[] actualDimensions)
public SOAPArrayType nestedArrayType()