Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class ProtocolFamilyArray

java.lang.Object
  extended by com.pcube.apps.engage.policy.ProtocolFamilyArray
All Implemented Interfaces:
Formattable, java.io.Serializable

public class ProtocolFamilyArray
extends java.lang.Object
implements Formattable, java.io.Serializable

A simple list of Protocol Famlies

Author:
rafis
See Also:
ProtocolFamliy, Serialized Form

Field Summary
static java.lang.String XML_TAG_NAME
           
 
Constructor Summary
ProtocolFamilyArray()
           
 
Method Summary
 void add(ProtocolFamily family)
           
 java.util.List asList()
           
 ProtocolFamily createProtocolFamily()
           
 boolean equals(java.lang.Object o)
           
 void fromStream(java.io.BufferedReader in, Formatter f)
          Method fromStream
 ProtocolFamilyArray fromXML(org.w3c.dom.Element selfElement)
          read protocol family list from XML
 ProtocolFamily getById(int id)
           
 ProtocolFamily getByName(java.lang.String name)
           
 java.util.Iterator iterator()
           
 void remove(ProtocolFamily family)
           
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
          convert to DOM element
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_TAG_NAME

public static final java.lang.String XML_TAG_NAME
See Also:
Constant Field Values
Constructor Detail

ProtocolFamilyArray

public ProtocolFamilyArray()
Method Detail

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

createProtocolFamily

public ProtocolFamily createProtocolFamily()

add

public void add(ProtocolFamily family)
         throws DuplicateItemException
Throws:
DuplicateItemException

remove

public void remove(ProtocolFamily family)

iterator

public java.util.Iterator iterator()

asList

public java.util.List asList()

getByName

public ProtocolFamily getByName(java.lang.String name)
Parameters:
name -
Returns:
ProtocolFamily or null if no family with the specified name exists

getById

public ProtocolFamily getById(int id)
Parameters:
id -
Returns:
ProtocolFamily or null if no family with the specified id exists

fromXML

public ProtocolFamilyArray fromXML(org.w3c.dom.Element selfElement)
                            throws ImportExportException
read protocol family list from XML

Parameters:
in -
Throws:
ImportExportException

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
convert to DOM element

Parameters:
doc -
Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.