Uses of Class javax.xml.datatype.DatatypeConstants.Field (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
javax.xml.datatype.DatatypeConstants.Field

- Packages that use DatatypeConstants.Field
  Package | Description
  --- | ---
  javax.xml.datatype | XML/Java Type Mappings.

- - ### Uses of DatatypeConstants.Field in javax.xml.datatype

    Fields in javax.xml.datatype declared as DatatypeConstants.Field
    Modifier and Type | Field and Description
    --- | ---
    `static DatatypeConstants.Field` | DatatypeConstants.`DAYS` A constant that represents the days field.
    `static DatatypeConstants.Field` | DatatypeConstants.`HOURS` A constant that represents the hours field.
    `static DatatypeConstants.Field` | DatatypeConstants.`MINUTES` A constant that represents the minutes field.
    `static DatatypeConstants.Field` | DatatypeConstants.`MONTHS` A constant that represents the months field.
    `static DatatypeConstants.Field` | DatatypeConstants.`SECONDS` A constant that represents the seconds field.
    `static DatatypeConstants.Field` | DatatypeConstants.`YEARS` A constant that represents the years field.

    Methods in javax.xml.datatype with parameters of type DatatypeConstants.Field
    Modifier and Type | Method and Description
    --- | ---
    `abstract Number` | Duration.`getField(DatatypeConstants.Field field)` Gets the value of a field.
    `abstract boolean` | Duration.`isSet(DatatypeConstants.Field field)` Checks if a field is set.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.