Code example for Collection

Methods: isIndexed

0
		} 
		if ( value instanceof Collection ) {
			Collection collection = ((Collection)value);
			Value element = collection.getElement();
			String elementType = getReferencedEntityName( element );
			if(collection.isIndexed()) {
				//TODO..list/map 
				/*IndexedCollection idxCol = (IndexedCollection) collection; 
				if(!idxCol.isList()) { 
					Value idxElement = idxCol.getIndex(); 
					String indexType = getReferencedEntityName( value ); 
					genericDecl = indexType + "," + elementType; 
				}*/ 
			} 			 
			return elementType;
		} 
		 
		if(value instanceof OneToMany) {
			return ((OneToMany)value).getReferencedEntityName();
		}