public class SizeResolver extends Object implements ModelNodeResolver<String>
| Modifier and Type | Field and Description |
|---|---|
static SizeResolver |
INSTANCE |
| Constructor and Description |
|---|
SizeResolver() |
| Modifier and Type | Method and Description |
|---|---|
long |
parseSize(org.jboss.dmr.ModelNode value) |
String |
resolveValue(OperationContext context,
org.jboss.dmr.ModelNode value)
Formats the attribute to the desired type.
|
public static final SizeResolver INSTANCE
public String resolveValue(OperationContext context, org.jboss.dmr.ModelNode value) throws OperationFailedException
ModelNodeResolverresolveValue in interface ModelNodeResolver<String>context - the operation contextvalue - the value to formatOperationFailedException - if an error occurspublic long parseSize(org.jboss.dmr.ModelNode value)
throws OperationFailedException
OperationFailedExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.