| Business Objects and Data Sources > States > Defining States in XML > Bellcore States |
Bellcore States |
INDEX
PREVIOUS
NEXT
|
The class IltBellcoreObjectStateSAXInfo is the XML serialization class that allows you to read and write Bellcore object states in the XML format.
The following table describes the XML elements that can be used.
<addObject id="NE3">
<class>ilog.tgo.model.IltNetworkElement</class>
<attribute name="name">NE3</attribute>
<attribute name="type">Router</attribute>
<attribute name="position" javaClass="ilog.cpl.graphic.IlpPoint">
<x>151</x> <y>512</y>
</attribute>
<attribute name="objectState"
javaClass="ilog.tgo.model.IltBellcoreObjectState">
<state>EnabledActive</state>
<secState>TestFailure</secState>
</attribute>
</addObject>
The following example shows how to set Bellcore states to an object that already exists in the data source. You can achieve this by using the XML tag <updateObject> to modify the attribute objectState:
<updateObject id="NE1">
<attribute name="objectState" javaClass="ilog.tgo.model.IltBellcoreObjectState">
<state>EnabledActive</state>
<secState>Blocked</secState>
<secState>Busy</secState>
</attribute>
</updateObject>
<updateObject id="NE1">
<updateState>
<state>EnabledIdle</state>
<secState operation="remove">Blocked</secState>
<secState operation="remove">Busy</secState>
<secState>HotStandby</secState>
</updateState>
</updateObject>
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |