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 reads an entire resource tree, ignoring runtime-only and proxy resources, and generates
a DMR tree representing all of the non-ignored resources.
|
static org.jboss.dmr.ModelNode |
readModel(Resource resource,
int level)
Reads a resource tree, recursing up to the given number of levels but ignoring runtime-only and proxy resources,
and generates a DMR tree representing all of the non-ignored resources.
|
static org.jboss.dmr.ModelNode |
readModel(Resource resource,
int level,
ResourceFilter filter)
Reads a resource tree, recursing up to the given number of levels but ignoring resources not accepted
by the given
filter , and generates a DMR tree representing all of the non-ignored resources. |
public static final 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 number of levels to recurse, or -1
for no limitpublic static org.jboss.dmr.ModelNode readModel(Resource resource, int level, ResourceFilter filter)
filter
, and generates a DMR tree representing all of the non-ignored resources.resource
- the modellevel
- the number of levels to recurse, or -1
for no limitfilter
- 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
Resource.NoSuchResourceException
- if there is no descendant resource at address
Copyright © 2023 JBoss by Red Hat. All rights reserved.