public class PreparedXMLStatement extends Object
This would indicate that subtype of ConfValue
will later
be set.
The put()
method should be used to actually
replace the ? with actual ConfValue
.
When all ? has been replaced by subtype of a ConfValue
the
final setValues()
is issued which will fill or replace
(if values exists) with the subtree specified by the XML-string at the
location where the preparedXMLCall
was
called.
If the ? is not replaced by a value before
a put()
occurs the value are treated
as ConfObject.J_DEFAULT
.
No actual validation occurs when put()
method is called with a ConfValue
different from the YANG-model at corresponding place.
(The first unknown ? parameters are zero indexed)
module mtest { namespace "http://tail-f.com/test/mtest/1.0"; prefix mtest; tailf:id ""; import ietf-yang-types { prefix yang; } import ietf-inet-types { prefix inet; } import tailf-common { prefix tailf; } import tailf-xsd-types { prefix xs; } container mtest { container servers { list server { key name; max-elements 64; leaf name { type string; } leaf ip { type inet:host; mandatory true; } leaf port { type inet:port-number; default 80; } list interface { key name; max-elements 8; leaf name { type string; } leaf mtu { type int64; default 1500; } } } } } }PreparedXMLStatement xmlst = serversNavuNode.prepareXMLCall( "<server>" + "<name>?</name>" + "<ip>?</ip>" + " <port>?</port>"+ "</server>"); xmlst.put(0, "www1"); xmlst.put(1,new ConfIPv4("192.168.10.12")); xmlst.put(2,new ConfUInt16(80)); xmlst.setValues();
Constructor and Description |
---|
PreparedXMLStatement(ConfXMLParam[] params,
Map<Integer,Object[]> paramInfoMap,
NavuNode node) |
Modifier and Type | Method and Description |
---|---|
ConfXMLParam[] |
getConfXMLParams() |
void |
put(int index,
ConfObject val)
Populate the corresponding parameterized value
val
at position index. |
void |
put(int index,
String strval) |
void |
reset() |
void |
set()
Deprecated.
|
void |
set(NavuContext context)
Deprecated.
|
void |
set(NavuNode node)
Deprecated.
|
void |
setBinary(int index,
ConfBinary val)
Deprecated.
|
void |
setBit32(int index,
ConfBit32 val)
Deprecated.
|
void |
setBit64(int index,
ConfBit64 val)
Deprecated.
|
void |
setBool(int index,
boolean val)
Deprecated.
|
void |
setBool(int index,
ConfBool val)
Deprecated.
|
void |
setBuf(int index,
ConfBuf val)
Deprecated.
|
void |
setBuf(int index,
String val)
Deprecated.
|
void |
setConfDouble(int index,
ConfDouble val)
Deprecated.
|
void |
setConfFloat(int index,
ConfFloat val)
Deprecated.
|
void |
setConfHexList(int index,
ConfHexList val)
Deprecated.
|
void |
setConfIdentityRef(int index,
ConfIdentityRef val)
Deprecated.
|
void |
setConfKey(int index,
ConfKey key)
Deprecated.
|
void |
setConfObjectRef(int index,
ConfObjectRef val)
Deprecated.
|
void |
setDate(int index,
ConfDate val)
Deprecated.
|
void |
setDatetime(int index,
ConfDatetime val)
Deprecated.
|
void |
setDecimal64(int index,
ConfDecimal64 val)
Deprecated.
|
void |
setDuration(int index,
ConfDuration val)
Deprecated.
|
void |
setEnumeration(int index,
ConfEnumeration val)
Deprecated.
|
void |
setHexList(int index,
ConfHexList val)
Deprecated.
|
void |
setInt16(int index,
ConfInt16 val)
Deprecated.
|
void |
setInt32(int index,
ConfInt32 val)
Deprecated.
|
void |
setInt64(int index,
ConfInt64 val)
Deprecated.
|
void |
setInt8(int index,
ConfInt8 val)
Deprecated.
|
void |
setIPv4(int index,
ConfIPv4 val)
Deprecated.
|
void |
setIPv4Prefix(int index,
ConfIPv4Prefix val)
Deprecated.
|
void |
setIPv6(int index,
ConfIPv6 val)
Deprecated.
|
void |
setIPv6Prefix(int index,
ConfIPv6Prefix val)
Deprecated.
|
void |
setUInt16(int index,
ConfUInt16 val)
Deprecated.
|
void |
setUInt32(int index,
ConfUInt32 val)
Deprecated.
|
void |
setUInt64(int index,
ConfUInt64 val)
Deprecated.
|
void |
setUInt8(int index,
ConfUInt8 val)
Deprecated.
|
void |
setValues()
When all the parameterized values has been filled
this method is intended to be invoked for a
final set operation with the given values.
|
void |
setValues(NavuContext context)
When all the parameterized values has been filled
this method is intended to be invoked for a
final set operation with the given values.
|
void |
setValues(NavuNode node) |
void |
sharedSetValues()
When all the parameterized values has been filled
this method is intended to be invoked for a
final set operation with the given values.
|
void |
sharedSetValues(NavuContext context)
When all the parameterized values has been filled
this method is intended to be invoked for a
final set operation with the given values.
|
void |
sharedSetValues(NavuNode node) |
public PreparedXMLStatement(ConfXMLParam[] params, Map<Integer,Object[]> paramInfoMap, NavuNode node)
public ConfXMLParam[] getConfXMLParams()
public void put(int index, ConfObject val)
val
at position index. First parameter correspond
to index position 0.
public void put(int index, String strval)
public void reset()
@Deprecated public void set() throws NavuException
setValues()
insteadNavuException
@Deprecated public void set(NavuContext context) throws NavuException
setValues(NavuContext)
insteadNavuException
@Deprecated public void set(NavuNode node) throws NavuException
setValues(NavuNode)
insteadNavuException
@Deprecated public void setBinary(int index, ConfBinary val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBinary value.index
- The Index positionval
- The value at position index@Deprecated public void setBit32(int index, ConfBit32 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBit32value.index
- The Index positionval
- The value at position index@Deprecated public void setBit64(int index, ConfBit64 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBit64value.index
- The Index positionval
- The value at position index@Deprecated public void setBool(int index, boolean val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBool.index
- The Index positionval
- The value at position index@Deprecated public void setBool(int index, ConfBool val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBool.index
- The Index positionval
- The value at position index@Deprecated public void setBuf(int index, ConfBuf val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBuf.index
- The Index positionval
- The value at position index@Deprecated public void setBuf(int index, String val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfBuf.index
- The Index positionval
- The value at position index@Deprecated public void setConfDouble(int index, ConfDouble val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDouble.index
- The Index positionval
- The value at position index@Deprecated public void setConfFloat(int index, ConfFloat val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDouble.index
- The Index positionval
- The value at position index@Deprecated public void setConfHexList(int index, ConfHexList val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIdentityRef.index
- The Index positionval
- The value at position index@Deprecated public void setConfIdentityRef(int index, ConfIdentityRef val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIdentityRef.index
- The Index positionval
- The value at position index@Deprecated public void setConfKey(int index, ConfKey key)
put(int, ConfObject)
instead.@Deprecated public void setConfObjectRef(int index, ConfObjectRef val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIdentityRef.index
- The Index positionval
- The value at position index@Deprecated public void setDate(int index, ConfDate val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDate.index
- The Index positionval
- The value at position index@Deprecated public void setDatetime(int index, ConfDatetime val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDatetime.index
- The Index positionval
- The value at position index@Deprecated public void setDecimal64(int index, ConfDecimal64 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDecimal64.index
- The Index positionval
- The value at position index@Deprecated public void setDuration(int index, ConfDuration val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfDuration.index
- The Index positionval
- The value at position index@Deprecated public void setEnumeration(int index, ConfEnumeration val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfEnumeration.index
- The Index positionval
- The value at position index@Deprecated public void setHexList(int index, ConfHexList val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfHexList value.index
- The Index positionval
- The value at position index@Deprecated public void setInt16(int index, ConfInt16 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt16 value.index
- The Index positionval
- The value at position index@Deprecated public void setInt32(int index, ConfInt32 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt32 value.index
- The Index positionval
- The value at position index@Deprecated public void setInt64(int index, ConfInt64 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt64 value.index
- The Index positionval
- The value at position index@Deprecated public void setInt8(int index, ConfInt8 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfInt8 value.index
- The Index positionval
- The value at position index@Deprecated public void setIPv4(int index, ConfIPv4 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIPv4 value.index
- The Index positionval
- The value at position index@Deprecated public void setIPv4Prefix(int index, ConfIPv4Prefix val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIPv4Prefix value.index
- The Index positionval
- The value at position index@Deprecated public void setIPv6(int index, ConfIPv6 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIPv4Prefix value.index
- The Index positionval
- The value at position index@Deprecated public void setIPv6Prefix(int index, ConfIPv6Prefix val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfIPv6Prefix value.index
- The Index positionval
- The value at position index@Deprecated public void setUInt16(int index, ConfUInt16 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt16 value.index
- The Index positionval
- The value at position index@Deprecated public void setUInt32(int index, ConfUInt32 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt32 value.index
- The Index positionval
- The value at position index@Deprecated public void setUInt64(int index, ConfUInt64 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt64 value.index
- The Index positionval
- The value at position index@Deprecated public void setUInt8(int index, ConfUInt8 val)
put(int, ConfObject)
instead.
Set the parameter at index index
with
the corresponding ConfUInt8 value.index
- The Index positionval
- The value at position indexpublic void setValues() throws NavuException
NavuException
- if some error occurred.public void setValues(NavuContext context) throws NavuException
context
- - Context object for which the setValues() operation
should useNavuException
- if some error occurred.public void setValues(NavuNode node) throws NavuException
NavuException
public void sharedSetValues() throws NavuException
NavuException
- if some error occurred.public void sharedSetValues(NavuContext context) throws NavuException
context
- - Context object for which the sharedSetValues()
operation should useNavuException
- if some error occurred.public void sharedSetValues(NavuNode node) throws NavuException
NavuException