org.nakedobjects.metamodel.util
Class CollectionFacetUtils

java.lang.Object
  extended by org.nakedobjects.metamodel.util.CollectionFacetUtils

public final class CollectionFacetUtils
extends java.lang.Object


Method Summary
static java.util.List<NakedObject> convertToAdapterList(NakedObject collection)
           
static java.lang.Object[] convertToArray(NakedObject collection)
          Deprecated. - use instead convertToList(NakedObject).
static java.util.List<java.lang.Object> convertToList(NakedObject collection)
           
static NakedObject firstElement(NakedObject collection)
           
static CollectionFacet getCollectionFacetFromSpec(NakedObject objectRepresentingCollection)
           
static int size(NakedObject collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCollectionFacetFromSpec

public static CollectionFacet getCollectionFacetFromSpec(NakedObject objectRepresentingCollection)

size

public static int size(NakedObject collection)

firstElement

public static NakedObject firstElement(NakedObject collection)

convertToArray

@Deprecated
public static java.lang.Object[] convertToArray(NakedObject collection)
Deprecated. - use instead convertToList(NakedObject).


convertToList

public static java.util.List<java.lang.Object> convertToList(NakedObject collection)

convertToAdapterList

public static java.util.List<NakedObject> convertToAdapterList(NakedObject collection)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.