org.apache.vinci.transport
Class Attributes

java.lang.Object
  extended by org.apache.vinci.transport.FrameComponent
      extended by org.apache.vinci.transport.Frame
          extended by org.apache.vinci.transport.QueryableFrame
              extended by org.apache.vinci.transport.VinciFrame
                  extended by org.apache.vinci.transport.Attributes
All Implemented Interfaces:
Transportable

public class Attributes
extends VinciFrame

Class for representing a list of attributes for an XML element.


Constructor Summary
Attributes()
           
Attributes(int initialCapacity)
           
 
Method Summary
 Frame fadd(java.lang.String key)
          This method throws an unchecked exception since valueless attributes are undefined.
 Frame fadd(java.lang.String key, Frame val)
          This method throws an unchecked exception since you should never add non-leaf valued attributes.
 VinciFrame fset(java.lang.String key, Frame val)
          This method throws an unchecked exception since you should never add non-leaf valued attributes.
 
Methods inherited from class org.apache.vinci.transport.VinciFrame
add, createSubFrame, ensureCapacity, fdrop, fdropFirst, fget, fgetFirst, fgetVinciFrame, fkeys, freset, fset, fset, fset, fset, fset, fset, fset, fsetTrueBinary, getKeyValuePair, getKeyValuePairCount, getVinciFrameFactory, set, stripWhitespace, toVinciFrame
 
Methods inherited from class org.apache.vinci.transport.QueryableFrame
fgetBoolean, fgetBytes, fgetDouble, fgetDoubleArray, fgetFloat, fgetFloatArray, fgetFrame, fgetInt, fgetIntArray, fgetLong, fgetLongArray, fgetString, fgetStringArray, fgetTrueBinary
 
Methods inherited from class org.apache.vinci.transport.Frame
createFrameLeaf, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, faddTrueBinary, fromStream, getFrameTransporter, setFrameTransporter, toRawXML, toRawXML, toRawXMLWork, toStream, toString, toXML, toXML, toXML
 
Methods inherited from class org.apache.vinci.transport.FrameComponent
getAttributes, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attributes

public Attributes()

Attributes

public Attributes(int initialCapacity)
Method Detail

fset

public VinciFrame fset(java.lang.String key,
                       Frame val)
This method throws an unchecked exception since you should never add non-leaf valued attributes.

Overrides:
fset in class VinciFrame
Throws:
java.lang.UnsupportedOperationException - thrown unconditionally.

fadd

public Frame fadd(java.lang.String key,
                  Frame val)
This method throws an unchecked exception since you should never add non-leaf valued attributes.

Overrides:
fadd in class Frame
Parameters:
key - The key to be associated with the value.
val - The sub-frame to add. Note this frame is not copied.
Returns:
This frame.
Throws:
java.lang.UnsupportedOperationException - thrown unconditionally.

fadd

public Frame fadd(java.lang.String key)
This method throws an unchecked exception since valueless attributes are undefined.

Overrides:
fadd in class Frame
Parameters:
key - The key name.
Returns:
This frame.
Throws:
java.lang.UnsupportedOperationException - thrown unconditionally.


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.