/** * Converts the value of the directory grouping to a model node. * * @return a new model node for the value. */ public ModelNode toModelNode() { return new ModelNode().set(toString()); }
public static DirectoryGrouping forName(String localName) { final DirectoryGrouping directoryGrouping = localName != null ? MAP.get(localName.toLowerCase()) : null; return directoryGrouping == null ? DirectoryGrouping.valueOf(localName.toUpperCase()) : directoryGrouping; }
/** * Returns the value of found in the model. * * @param model the model that contains the key and value. * @param expressionResolver the expression resolver to use to resolve expressions * * @return the directory grouping found in the model. * * @throws IllegalArgumentException if the {@link ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping} * was not found in the model. */ private static DirectoryGrouping resolveDirectoryGrouping(final ModelNode model, final ExpressionResolver expressionResolver) { try { return DirectoryGrouping.forName(HostResourceDefinition.DIRECTORY_GROUPING.resolveModelAttribute(expressionResolver, model).asString()); } catch (OperationFailedException e) { throw new IllegalStateException(e); } }
/** * Returns the value of found in the model. * * @param model the model that contains the key and value. * @param expressionResolver the expression resolver to use to resolve expressions * * @return the directory grouping found in the model. * * @throws IllegalArgumentException if the {@link org.jboss.as.controller.descriptions.ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping} * was not found in the model. */ private static DirectoryGrouping resolveDirectoryGrouping(final ModelNode model, final ExpressionResolver expressionResolver) { try { return DirectoryGrouping.forName(HostResourceDefinition.DIRECTORY_GROUPING.resolveModelAttribute(expressionResolver, model).asString()); } catch (OperationFailedException e) { throw new IllegalStateException(e); } }
public static DirectoryGrouping forName(String localName) { final DirectoryGrouping directoryGrouping = localName != null ? MAP.get(localName.toLowerCase()) : null; return directoryGrouping == null ? DirectoryGrouping.valueOf(localName.toUpperCase(Locale.ENGLISH)) : directoryGrouping; }
/** * Converts the value of the directory grouping to a model node. * * @return a new model node for the value. */ public ModelNode toModelNode() { return new ModelNode().set(toString()); }
/** * Returns the value of found in the model. * * @param model the model that contains the key and value. * @param expressionResolver the expression resolver to use to resolve expressions * * @return the directory grouping found in the model. * * @throws IllegalArgumentException if the {@link org.jboss.as.controller.descriptions.ModelDescriptionConstants#DIRECTORY_GROUPING directory grouping} * was not found in the model. */ private static DirectoryGrouping resolveDirectoryGrouping(final ModelNode model, final ExpressionResolver expressionResolver) { try { return DirectoryGrouping.forName(HostResourceDefinition.DIRECTORY_GROUPING.resolveModelAttribute(expressionResolver, model).asString()); } catch (OperationFailedException e) { throw new IllegalStateException(e); } }
public static DirectoryGrouping forName(String localName) { final DirectoryGrouping directoryGrouping = localName != null ? MAP.get(localName.toLowerCase()) : null; return directoryGrouping == null ? DirectoryGrouping.valueOf(localName.toUpperCase(Locale.ENGLISH)) : directoryGrouping; }
/** * Converts the value of the directory grouping to a model node. * * @return a new model node for the value. */ public ModelNode toModelNode() { return new ModelNode().set(toString()); }