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, Serializable

public class ProtocolFamilyArray
extends Object
implements Formattable, Serializable

A simple list of Protocol Famlies

Author:
rafis
See Also:
ProtocolFamliy, Serialized Form

Field Summary
static String XML_TAG_NAME
           
 
Constructor Summary
ProtocolFamilyArray()
           
 
Method Summary
 void add(ProtocolFamily family)
           
 List asList()
           
 ProtocolFamily createProtocolFamily()
           
 boolean equals(Object o)
           
 void fromStream(BufferedReader in, Formatter f)
          Method fromStream
 ProtocolFamilyArray fromXML(Element selfElement)
          read protocol family list from XML
 ProtocolFamily getById(int id)
           
 ProtocolFamily getByName(String name)
           
 Iterator iterator()
           
 void remove(ProtocolFamily family)
           
 void toStream(PrintStream out, Formatter f)
          Method toStream
 Element toXML(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 String XML_TAG_NAME
See Also:
Constant Field Values
Constructor Detail

ProtocolFamilyArray

public ProtocolFamilyArray()
Method Detail

fromStream

public void fromStream(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(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 Iterator iterator()

asList

public List asList()

getByName

public ProtocolFamily getByName(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(Element selfElement)
                            throws ImportExportException
read protocol family list from XML

Parameters:
in -
Throws:
ImportExportException

toXML

public Element toXML(Document doc)
convert to DOM element

Parameters:
doc -
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

Cisco Systems, Inc.

Copyright © 2011 Cisco Systems, Inc. Confidential.