| Business Objects and Data Sources > States > Defining States in XML > SONET States |
SONET States |
INDEX
PREVIOUS
NEXT
|
The class IltSONETObjectStateSAXInfo is the XML serialization class that allows you to read and write SONET states in the XML format.
The following table describes the XML elements that can be used:
<addObject id="Link1">
<class>ilog.tgo.model.IltLink</class>
<link> <from>PolyGroup</from> <to>NE3</to> </link>
<attribute name="name">Link1</attribute>
<attribute name="media">Fiber</attribute>
<attribute name="objectState" javaClass="ilog.tgo.model.IltSONETObjectState">
<state>Active</state>
<protection from="true">Exercisor</protection>
<protection to="true">Locked</protection>
</attribute>
</addObject>
The following example shows how to set SONET 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="Link1">
<attribute name="objectState" javaClass="ilog.tgo.model.IltSONETObjectState">
<state>Active</state>
<protection from="true" to="false">Exercisor</protection>
<protection>Locked</protection>
</attribute>
</updateObject>
<updateObject id="Link1">
<updateState>
<protection from="false" to="true">Exercisor</protection>
<protection from="false" to="false">Locked</protection>
</updateState>
</updateObject>
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |