ilog.tgo.model.attribute
Class IltAlarmSeverityAttribute

java.lang.Object
  extended by ilog.cpl.model.IlpDefaultAttribute
      extended by ilog.tgo.model.attribute.IltAlarmSeverityAttribute
All Implemented Interfaces:
IlpAttribute, IlpSAXSerializable

public class IltAlarmSeverityAttribute
extends IlpDefaultAttribute
implements IlpSAXSerializable

Attribute definition for IltAlarm.PerceivedSeverityAttribute. Handles the specific XML serialization for this attribute.

Since:
JTGO 4.0

Nested Class Summary
static class IltAlarmSeverityAttribute.IlpSAXAlarmSeverityHandler
          SAX handler implementation which is able to handle alarm severity attributes.
 
Field Summary
 
Fields inherited from interface ilog.cpl.storage.IlpSAXSerializable
EMPTY_ATTRS
 
Constructor Summary
IltAlarmSeverityAttribute(String name, Class valueClass)
          Constructor.
IltAlarmSeverityAttribute(String name, Class valueClass, boolean isTransient)
          Constructor.
IltAlarmSeverityAttribute(String name, Class valueClass, Object defaultValue)
          Constructor.
IltAlarmSeverityAttribute(String name, Class valueClass, Object defaultValue, boolean isTransient)
          Constructor.
 
Method Summary
 IlpSAXAttributeValueHandler getSAXHandler()
          Returns a SAX handler capable of reading the attribute.
 void output(Object value, IlpTypeConverter typeConverter, ContentHandler outputHandler)
          Writes the value to a SAX ContentHandler.
 
Methods inherited from class ilog.cpl.model.IlpDefaultAttribute
getAttributeGroup, getDefaultValue, getName, getValueClass, isTransient, setAttributeGroup, setDefaultValue, setName, setTransient, setValueClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IltAlarmSeverityAttribute

public IltAlarmSeverityAttribute(String name,
                                 Class valueClass)
Constructor.

Parameters:
name - Attribute name.
valueClass - Attribute value class.

IltAlarmSeverityAttribute

public IltAlarmSeverityAttribute(String name,
                                 Class valueClass,
                                 boolean isTransient)
Constructor.

Parameters:
name - Attribute name.
valueClass - Attribute value class.
isTransient - true if the attribute is not persistent.

IltAlarmSeverityAttribute

public IltAlarmSeverityAttribute(String name,
                                 Class valueClass,
                                 Object defaultValue)
Constructor.

Parameters:
name - Attribute name.
valueClass - Attribute value class.
defaultValue - Default value for this attribute.

IltAlarmSeverityAttribute

public IltAlarmSeverityAttribute(String name,
                                 Class valueClass,
                                 Object defaultValue,
                                 boolean isTransient)
Constructor.

Parameters:
name - Attribute name.
valueClass - Attribute value class.
defaultValue - Default value for this attribute.
isTransient - true if the attribute is not persistent.
Method Detail

getSAXHandler

public IlpSAXAttributeValueHandler getSAXHandler()
Returns a SAX handler capable of reading the attribute. The returned SAX handler should be a new one each time this method is called or there should be at least one instance for each thread.

Specified by:
getSAXHandler in interface IlpSAXSerializable
Returns:
A handler for SAX events.
See Also:
IlpSAXSerializable.getSAXHandler()

output

public void output(Object value,
                   IlpTypeConverter typeConverter,
                   ContentHandler outputHandler)
            throws SAXException
Writes the value to a SAX ContentHandler. The method translates the object to SAX ContentHandler method calls.

Specified by:
output in interface IlpSAXSerializable
Parameters:
value - The object to write.
typeConverter - The type converter that may be needed to translate values to strings.
outputHandler - The SAX ContentHandler used by this method.
Throws:
SAXException
See Also:
IlpSAXSerializable.output(java.lang.Object, ilog.cpl.util.IlpTypeConverter, org.xml.sax.ContentHandler)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.