org.ho.yaml.wrapper
Class ArrayWrapper

java.lang.Object
  extended by org.ho.yaml.wrapper.AbstractWrapper
      extended by org.ho.yaml.wrapper.ArrayWrapper
All Implemented Interfaces:
java.lang.Iterable, CollectionWrapper, ObjectWrapper

public class ArrayWrapper
extends AbstractWrapper
implements CollectionWrapper


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ho.yaml.wrapper.ObjectWrapper
ObjectWrapper.CreateListener
 
Constructor Summary
ArrayWrapper(java.lang.Class type)
           
 
Method Summary
 void add(int index, java.lang.Object object)
          assumes that isOrdered() returns true
 void add(java.lang.Object object)
           
 java.lang.Class componentType()
           
 java.lang.Object createPrototype()
           
 boolean isOrdered()
           
 boolean isTyped()
           
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class org.ho.yaml.wrapper.AbstractWrapper
addCreateHandler, getObject, getType, makeWrapper, setObject, setYamlConfig, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ho.yaml.wrapper.ObjectWrapper
addCreateHandler, getObject, getType, setObject, setYamlConfig
 

Constructor Detail

ArrayWrapper

public ArrayWrapper(java.lang.Class type)
Method Detail

createPrototype

public java.lang.Object createPrototype()
Specified by:
createPrototype in interface ObjectWrapper
Overrides:
createPrototype in class AbstractWrapper

add

public void add(java.lang.Object object)
Specified by:
add in interface CollectionWrapper

add

public void add(int index,
                java.lang.Object object)
Description copied from interface: CollectionWrapper
assumes that isOrdered() returns true

Specified by:
add in interface CollectionWrapper

isTyped

public boolean isTyped()
Specified by:
isTyped in interface CollectionWrapper

componentType

public java.lang.Class componentType()
Specified by:
componentType in interface CollectionWrapper

size

public int size()
Specified by:
size in interface CollectionWrapper

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface CollectionWrapper

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable