| Package | Description | 
|---|---|
| javax.xml.datatype | XML/Java Type Mappings. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static DatatypeConstants.Field | DatatypeConstants. DAYSA constant that represents the days field. | |
| static DatatypeConstants.Field | DatatypeConstants. HOURSA constant that represents the hours field. | |
| static DatatypeConstants.Field | DatatypeConstants. MINUTESA constant that represents the minutes field. | |
| static DatatypeConstants.Field | DatatypeConstants. MONTHSA constant that represents the months field. | |
| static DatatypeConstants.Field | DatatypeConstants. SECONDSA constant that represents the seconds field. | |
| static DatatypeConstants.Field | DatatypeConstants. YEARSA constant that represents the years field. | 
| Modifier and Type | Method | 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.