Modifier and Type | Field and Description |
---|---|
static ResourceFilter |
ALL_BUT_RUNTIME_AND_PROXIES_FILTER |
Modifier and Type | Method and Description |
---|---|
static Resource |
navigate(Resource resource,
PathAddress address)
Navigate from a parent
resource to the descendant resource at the given relative addresss . |
static org.jboss.dmr.ModelNode |
readModel(Resource resource)
Recursively read the local model.
|
static org.jboss.dmr.ModelNode |
readModel(Resource resource,
int level)
Read the local model.
|
static org.jboss.dmr.ModelNode |
readModel(Resource resource,
int level,
ResourceFilter filter)
Read the local model.
|
public static ResourceFilter ALL_BUT_RUNTIME_AND_PROXIES_FILTER
public static org.jboss.dmr.ModelNode readModel(Resource resource)
resource
- the root resourcepublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level)
resource
- the modellevel
- the recursion levelpublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ResourceFilter filter)
resource
- the modellevel
- the recursion levelfilter
- a resource filterpublic static Resource navigate(Resource resource, PathAddress address)
resource
to the descendant resource at the given relative addresss
.
Resource.navigate(PathAddress)
implementations can use this as a standard implementation.
resource
- the resource the resource. Cannot be null
address
- the address the address relative to resource
's address. Cannot be null
null
NoSuchElementException
- if there is no descendant resource at address
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.