Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.models
Class AbstractModel

java.lang.Object
  extended by org.nuxeo.theme.models.AbstractModel
All Implemented Interfaces:
Model
Direct Known Subclasses:
BlogPostListModel, BlogPostModel, BlogSiteArchiveDayModel, BlogSiteArchiveListModel, BlogSiteArchiveMonthModel, BlogSiteArchiveYearModel, CommentListModel, CommentModel, ContextualLinkListModel, ContextualLinkModel, Feed, FeedItem, Html, Menu, MenuItem, Navigation, NavigationItem, Region, RegionModel, SearchListModel, SearchModel, TagCloudListModel, TagCloudModel, TagListModel, TagModel, Text, WebpageCommentListModel, WebpageCommentModel, WebpageListModel, WebpageModel

public abstract class AbstractModel
extends Object
implements Model


Constructor Summary
AbstractModel()
           
 
Method Summary
 Model addItem(Model model)
           
 List<Model> getItems()
           
 ModelType getModelType()
           
 String getModelTypeName()
           
 boolean hasItems()
           
 Model insertItem(int index, Model model)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModel

public AbstractModel()
Method Detail

getModelTypeName

public String getModelTypeName()
Specified by:
getModelTypeName in interface Model

getModelType

public ModelType getModelType()
Specified by:
getModelType in interface Model

addItem

public Model addItem(Model model)
              throws ModelException
Specified by:
addItem in interface Model
Throws:
ModelException

insertItem

public Model insertItem(int index,
                        Model model)
                 throws ModelException
Specified by:
insertItem in interface Model
Throws:
ModelException

getItems

public List<Model> getItems()
Specified by:
getItems in interface Model

hasItems

public boolean hasItems()
Specified by:
hasItems in interface Model

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.