public final class WroModel extends Object
| Constructor and Description |
|---|
WroModel() |
| Modifier and Type | Method and Description |
|---|---|
WroModel |
addGroup(Group group)
Add a single group to the model.
|
boolean |
equals(Object obj) |
Group |
getGroupByName(String name)
Deprecated.
|
Collection<String> |
getGroupNamesContainingResource(String resourceUri)
Deprecated.
|
Collection<Group> |
getGroups() |
int |
hashCode() |
void |
merge(WroModel importedModel)
Merge this model with another model.
|
WroModel |
setGroups(Collection<Group> groups) |
String |
toString() |
public final Collection<Group> getGroups()
public final WroModel setGroups(Collection<Group> groups)
groups - the groups to set@Deprecated public Collection<String> getGroupNamesContainingResource(String resourceUri)
WroModelInspector.getGroupNamesContainingResource(String)resource - the Resource to search in all available groups.@Deprecated public Group getGroupByName(String name)
WroModelInspector.getGroupByName(String)name - of group to find.runtime - exception if group is not found.public void merge(WroModel importedModel)
importedModel - model to import.public WroModel addGroup(Group group)
group - a not null Group.Copyright © 2008-2014. All Rights Reserved.