Class ISOStandardDurationAttributeDefinition

java.lang.Object
org.jboss.as.controller.AttributeDefinition
org.jboss.as.controller.SimpleAttributeDefinition
org.jboss.as.clustering.controller.ISOStandardDurationAttributeDefinition
All Implemented Interfaces:
org.jboss.as.controller.Feature, org.wildfly.subsystem.resource.ResourceModelResolver<Duration>, org.wildfly.subsystem.resource.ResourceResolver<Duration>

public class ISOStandardDurationAttributeDefinition extends org.jboss.as.controller.SimpleAttributeDefinition implements org.wildfly.subsystem.resource.ResourceModelResolver<Duration>
Attribute definition for ISO 8601 standard duration strings that resolves to a Duration. This directly maps to the XSD type xs:duration. Values are validated by calling Duration.parse(CharSequence). FIXME This is intended to be replaced with variant from WildFly Core.
Author:
Radoslav Husar
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeDefinition

    org.jboss.as.controller.AttributeDefinition.NameAndGroup
  • Field Summary

    Fields inherited from class org.jboss.as.controller.AttributeDefinition

    COMPLEX_TYPES
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model)
     

    Methods inherited from class org.jboss.as.controller.SimpleAttributeDefinition

    marshallAsAttribute, marshallAsAttribute, marshallAsElement, parseAndSetParameter

    Methods inherited from class org.jboss.as.controller.AttributeDefinition

    addAccessConstraints, addAllowedValuesToDescription, addCapabilityRequirements, addDeprecatedInfo, addOperationParameterDescription, addOperationParameterDescription, addOperationReplyDescription, addOperationReplyDescription, addResourceAttributeDescription, addResourceAttributeDescription, convertParameterExpressions, convertStringExpression, correctValue, equals, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMarshaller, getMeasurementUnit, getName, getNoTextDescription, getParser, getReferenceRecorder, getRequires, getStability, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, hasCapabilityRequirements, hashCode, isAllowed, isAllowExpression, isDeprecated, isMarshallable, isMarshallable, isNillable, isNullSignificant, isRequired, isRequired, isResourceOnly, marshallAsElement, removeCapabilityRequirements, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, toString, validateAndSet, validateOperation

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.wildfly.subsystem.resource.ResourceModelResolver

    resolve
  • Method Details

    • resolve

      public Duration resolve(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
      Specified by:
      resolve in interface org.wildfly.subsystem.resource.ResourceModelResolver<Duration>
      Throws:
      org.jboss.as.controller.OperationFailedException