jdk/src/java.desktop/share/classes/javax/imageio/metadata/IIOMetadataFormat.java
author alanb
Fri, 07 Apr 2017 08:05:54 +0000
changeset 44545 83b611b88ac8
parent 36511 9d0388c6b336
permissions -rw-r--r--
8177530: Module system implementation refresh (4/2017) Reviewed-by: mchung, alanb Contributed-by: alan.bateman@oracle.com, mandy.chung@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 21278
diff changeset
     2
 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2375
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2375
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2375
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2375
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2375
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.imageio.metadata;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.Locale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import javax.imageio.ImageTypeSpecifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * An object describing the structure of metadata documents returned
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    33
 * from {@code IIOMetadata.getAsTree} and passed to
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    34
 * {@code IIOMetadata.setFromTree} and {@code mergeTree}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * Document structures are described by a set of constraints on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * type and number of child elements that may belong to a given parent
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * element type, the names, types, and values of attributes that may
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * belong to an element, and the type and values of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    39
 * {@code Object} reference that may be stored at a node.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <p> N.B: classes that implement this interface should contain a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    42
 * method declared as {@code public static getInstance()} which
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
    43
 * returns an instance of the class.  Commonly, an implementation will
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * construct only a single instance and cache it for future
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    45
 * invocations of {@code getInstance}.
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    46
 * <p> In the event that the plugin is provided as part of a named module,
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    47
 * that module must export the package containing the implementation class
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    48
 * to the <pre>java.desktop</pre> module via a qualified export.
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    49
 * An unqualified export is not recommended unless also needed for
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    50
 * some other reason. Failing to export the package will result in
9d0388c6b336 8142968: Module System implementation
alanb
parents: 35667
diff changeset
    51
 * access failure at runtime.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <p> The structures that may be described by this class are a subset
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * of those expressible using XML document type definitions (DTDs),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * with the addition of some basic information on the datatypes of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    56
 * attributes and the ability to store an {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * reference within a node.  In the future, XML Schemas could be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * to represent these structures, and many others.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <p> The differences between
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    61
 * {@code IIOMetadataFormat}-described structures and DTDs are as
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * <li> Elements may not contain text or mix text with embedded
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * tags.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * <li> The children of an element must conform to one of a few simple
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * patterns, described in the documentation for the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    70
 * {@code CHILD_*} constants;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * <li> The in-memory representation of an elements may contain a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    73
 * reference to an {@code Object}.  There is no provision for
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * representing such objects textually.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
public interface IIOMetadataFormat {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    // Child policies
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    83
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * that an element may not have any children.  In other words, it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * is required to be a leaf node.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    int CHILD_POLICY_EMPTY = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    90
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * that an element must have a single instance of each of its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * legal child elements, in order.  In DTD terms, the contents of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    93
     * the element are defined by a sequence {@code a,b,c,d,...}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    int CHILD_POLICY_ALL = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
    98
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * that an element must have zero or one instance of each of its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * legal child elements, in order.  In DTD terms, the contents of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * the element are defined by a sequence
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   102
     * {@code a?,b?,c?,d?,...}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    int CHILD_POLICY_SOME = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   107
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * that an element must have zero or one children, selected from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * among its legal child elements.  In DTD terms, the contents of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * the element are defined by a selection
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   111
     * {@code a|b|c|d|...}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    int CHILD_POLICY_CHOICE = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   116
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * that an element must have a sequence of instances of any of its
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * legal child elements.  In DTD terms, the contents of the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   119
     * element are defined by a sequence {@code (a|b|c|d|...)*}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    int CHILD_POLICY_SEQUENCE = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   124
     * A constant returned by {@code getChildPolicy} to indicate
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * that an element must have zero or more instances of its unique
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * legal child element.  In DTD terms, the contents of the element
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   127
     * are defined by a starred expression {@code a*}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    int CHILD_POLICY_REPEAT = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   132
     * The largest valid {@code CHILD_POLICY_*} constant,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * to be used for range checks.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    int CHILD_POLICY_MAX = CHILD_POLICY_REPEAT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   138
     * A constant returned by {@code getObjectValueType} to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * indicate the absence of a user object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    int VALUE_NONE = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   144
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   145
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * or user object may be set a single, arbitrary value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    int VALUE_ARBITRARY = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   151
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   152
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * or user object may be set a range of values.  Both the minimum
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * and maximum values of the range are exclusive.  It is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * recommended that ranges of integers be inclusive on both ends,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * and that exclusive ranges be used only for floating-point data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @see #VALUE_RANGE_MIN_MAX_INCLUSIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    int VALUE_RANGE = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   163
     * A value that may be or'ed with {@code VALUE_RANGE} to
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   164
     * obtain {@code VALUE_RANGE_MIN_INCLUSIVE}, and with
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   165
     * {@code VALUE_RANGE_MAX_INCLUSIVE} to obtain
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   166
     * {@code VALUE_RANGE_MIN_MAX_INCLUSIVE}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * <p> Similarly, the value may be and'ed with the value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   169
     * {@code getAttributeValueType} or
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   170
     * {@code getObjectValueType} to determine if the minimum
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * value of the range is inclusive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    int VALUE_RANGE_MIN_INCLUSIVE_MASK = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   176
     * A value that may be or'ed with {@code VALUE_RANGE} to
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   177
     * obtain {@code VALUE_RANGE_MAX_INCLUSIVE}, and with
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   178
     * {@code VALUE_RANGE_MIN_INCLUSIVE} to obtain
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   179
     * {@code VALUE_RANGE_MIN_MAX_INCLUSIVE}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * <p> Similarly, the value may be and'ed with the value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   182
     * {@code getAttributeValueType} or
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   183
     * {@code getObjectValueType} to determine if the maximum
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * value of the range is inclusive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    int VALUE_RANGE_MAX_INCLUSIVE_MASK = 8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   189
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   190
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * or user object may be set to a range of values.  The minimum
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * (but not the maximum) value of the range is inclusive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    int VALUE_RANGE_MIN_INCLUSIVE = VALUE_RANGE |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        VALUE_RANGE_MIN_INCLUSIVE_MASK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   198
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   199
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * or user object may be set to a range of values.  The maximum
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * (but not the minimum) value of the range is inclusive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    int VALUE_RANGE_MAX_INCLUSIVE = VALUE_RANGE |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        VALUE_RANGE_MAX_INCLUSIVE_MASK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   207
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   208
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * or user object may be set a range of values.  Both the minimum
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * and maximum values of the range are inclusive.  It is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * recommended that ranges of integers be inclusive on both ends,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * and that exclusive ranges be used only for floating-point data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    int VALUE_RANGE_MIN_MAX_INCLUSIVE =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        VALUE_RANGE |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        VALUE_RANGE_MIN_INCLUSIVE_MASK |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        VALUE_RANGE_MAX_INCLUSIVE_MASK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   220
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   221
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * or user object may be set one of a number of enumerated values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * In the case of attributes, these values are
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   224
     * {@code String}s; for objects, they are
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   225
     * {@code Object}s implementing a given class or interface.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   227
     * <p> Attribute values of type {@code DATATYPE_BOOLEAN}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * should be marked as enumerations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    int VALUE_ENUMERATION = 16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   233
     * A constant returned by {@code getAttributeValueType} and
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   234
     * {@code getObjectValueType} to indicate that the attribute
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * or user object may be set to a list or array of values.  In the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * case of attributes, the list will consist of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   237
     * whitespace-separated values within a {@code String}; for
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * objects, an array will be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    int VALUE_LIST = 32;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   243
     * A constant returned by {@code getAttributeDataType}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * indicating that the value of an attribute is a general Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * string.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    int DATATYPE_STRING = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   250
     * A constant returned by {@code getAttributeDataType}
2375
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   251
     * indicating that the value of an attribute is one of the boolean
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   252
     * values 'true' or 'false'.
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   253
     * Attribute values of type DATATYPE_BOOLEAN should be marked as
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   254
     * enumerations, and the permitted values should be the string
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   255
     * literal values "TRUE" or "FALSE", although a plugin may also
bb4dd76ca2c9 5082756: Image I/O plug-ins set metadata boolean attributes to "true" or "false"
bae
parents: 2
diff changeset
   256
     * recognise lower or mixed case equivalents.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    int DATATYPE_BOOLEAN = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   261
     * A constant returned by {@code getAttributeDataType}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * indicating that the value of an attribute is a string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * representation of an integer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    int DATATYPE_INTEGER = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   268
     * A constant returned by {@code getAttributeDataType}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * indicating that the value of an attribute is a string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * representation of a decimal floating-point number.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    int DATATYPE_FLOAT = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   275
     * A constant returned by {@code getAttributeDataType}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * indicating that the value of an attribute is a string
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * representation of a double-precision decimal floating-point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * number.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    int DATATYPE_DOUBLE = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    // Root
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     * Returns the name of the root element of the format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   287
     * @return a {@code String}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
    String getRootName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    // Multiplicity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   294
     * Returns {@code true} if the element (and the subtree below
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * it) is allowed to appear in a metadata document for an image of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   296
     * the given type, defined by an {@code ImageTypeSpecifier}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * For example, a metadata document format might contain an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * element that describes the primary colors of the image, which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     * would not be allowed when writing a grayscale image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     * @param elementName the name of the element being queried.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   302
     * @param imageType an {@code ImageTypeSpecifier} indicating
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     * the type of the image that will be associated with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * metadata.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   306
     * @return {@code true} if the node is meaningful for images
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * of the given type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
    boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * Returns the minimum number of children of the named element
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   313
     * with child policy {@code CHILD_POLICY_REPEAT}.  For
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * example, an element representing color primary information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * might be required to have at least 3 children, one for each
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
   316
     * primary.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   320
     * @return an {@code int}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   322
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   323
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * @exception IllegalArgumentException if the named element does
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   326
     * not have a child policy of {@code CHILD_POLICY_REPEAT}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    int getElementMinChildren(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     * Returns the maximum number of children of the named element
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   332
     * with child policy {@code CHILD_POLICY_REPEAT}.  For
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * example, an element representing an entry in an 8-bit color
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * palette might be allowed to repeat up to 256 times.  A value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   335
     * {@code Integer.MAX_VALUE} may be used to specify that
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * there is no upper bound.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   340
     * @return an {@code int}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   342
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   343
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * @exception IllegalArgumentException if the named element does
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   346
     * not have a child policy of {@code CHILD_POLICY_REPEAT}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
    int getElementMaxChildren(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   351
     * Returns a {@code String} containing a description of the
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   352
     * named element, or {@code null}.  The description will be
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   353
     * localized for the supplied {@code Locale} if possible.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   355
     * <p> If {@code locale} is {@code null}, the current
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   356
     * default {@code Locale} returned by {@code Locale.getLocale}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * will be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     * @param elementName the name of the element.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   360
     * @param locale the {@code Locale} for which localization
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
     * will be attempted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
     * @return the element description.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   365
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   366
     * is {@code null}, or is not a legal element name for this format.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
    String getElementDescription(String elementName, Locale locale);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
    // Children
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * Returns one of the constants starting with
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   374
     * {@code CHILD_POLICY_}, indicating the legal pattern of
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * children for the named element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   379
     * @return one of the {@code CHILD_POLICY_*} constants.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   381
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   382
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    int getChildPolicy(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   388
     * Returns an array of {@code String}s indicating the names
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * of the element which are allowed to be children of the named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     * element, in the order in which they should appear.  If the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   391
     * element cannot have children, {@code null} is returned.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   395
     * @return an array of {@code String}s, or null.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   397
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   398
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
    String[] getChildNames(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
    // Attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   406
     * Returns an array of {@code String}s listing the names of
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * the attributes that may be associated with the named element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   411
     * @return an array of {@code String}s.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   413
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   414
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
    String[] getAttributeNames(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   420
     * Returns one of the constants starting with {@code VALUE_},
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * indicating whether the values of the given attribute within the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * named element are arbitrary, constrained to lie within a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * specified range, constrained to be one of a set of enumerated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * values, or are a whitespace-separated list of arbitrary values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   429
     * @return one of the {@code VALUE_*} constants.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   431
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   432
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   434
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   435
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
    int getAttributeValueType(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * Returns one of the constants starting with
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   442
     * {@code DATATYPE_}, indicating the format and
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
   443
     * interpretation of the value of the given attribute within the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   444
     * named element.  If {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   445
     * {@code VALUE_LIST}, then the legal value is a
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
     * whitespace-spearated list of values of the returned datatype.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   451
     * @return one of the {@code DATATYPE_*} constants.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   453
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   454
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   456
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   457
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
    int getAttributeDataType(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   463
     * Returns {@code true} if the named attribute must be
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     * present within the named element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   469
     * @return {@code true} if the attribute must be present.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   471
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   472
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   474
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   475
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
    boolean isAttributeRequired(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
     * Returns the default value of the named attribute, if it is not
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
   482
     * explicitly present within the named element, as a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   483
     * {@code String}, or {@code null} if no default value
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * is available.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   489
     * @return a {@code String} containing the default value, or
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   490
     * {@code null}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   492
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   493
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   495
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   496
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
    String getAttributeDefaultValue(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   502
     * Returns an array of {@code String}s containing the legal
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     * enumerated values for the given attribute within the named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     * element.  This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   505
     * {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   506
     * {@code VALUE_ENUMERATION}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   511
     * @return an array of {@code String}s.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   513
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   514
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   516
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   517
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     * @exception IllegalArgumentException if the given attribute is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
     * not defined as an enumeration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
    String[] getAttributeEnumerations(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
     * Returns the minimum legal value for the attribute.  Whether
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * this value is inclusive or exclusive may be determined by the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   527
     * value of {@code getAttributeValueType}.  The value is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   528
     * returned as a {@code String}; its interpretation is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   529
     * dependent on the value of {@code getAttributeDataType}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   531
     * {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   532
     * {@code VALUE_RANGE_*}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   537
     * @return a {@code String} containing the smallest legal
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     * value for the attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   540
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   541
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   543
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   544
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
     * @exception IllegalArgumentException if the given attribute is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
     * not defined as a range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
    String getAttributeMinValue(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
     * Returns the maximum legal value for the attribute.  Whether
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     * this value is inclusive or exclusive may be determined by the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   554
     * value of {@code getAttributeValueType}.  The value is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   555
     * returned as a {@code String}; its interpretation is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   556
     * dependent on the value of {@code getAttributeDataType}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     * This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   558
     * {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   559
     * {@code VALUE_RANGE_*}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * @param elementName the name of the element being queried, as a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   562
     * {@code String}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   565
     * @return a {@code String} containing the largest legal
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
     * value for the attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   568
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   569
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   571
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   572
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
     * @exception IllegalArgumentException if the given attribute is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
     * not defined as a range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
    String getAttributeMaxValue(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * Returns the minimum number of list items that may be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     * define this attribute.  The attribute itself is defined as a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   582
     * {@code String} containing multiple whitespace-separated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * items.  This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   584
     * {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   585
     * {@code VALUE_LIST}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     * @return the smallest legal number of list items for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
     * attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   593
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   594
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   596
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   597
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     * @exception IllegalArgumentException if the given attribute is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
     * not defined as a list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
    int getAttributeListMinLength(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
     * Returns the maximum number of list items that may be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     * define this attribute.  A value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   607
     * {@code Integer.MAX_VALUE} may be used to specify that
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * there is no upper bound.  The attribute itself is defined as a
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   609
     * {@code String} containing multiple whitespace-separated
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     * items.  This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   611
     * {@code getAttributeValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   612
     * {@code VALUE_LIST}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
     * @param attrName the name of the attribute being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
     * @return the largest legal number of list items for the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
     * attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   620
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   621
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
     * format.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   623
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   624
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     * @exception IllegalArgumentException if the given attribute is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     * not defined as a list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
    int getAttributeListMaxLength(String elementName, String attrName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   632
     * Returns a {@code String} containing a description of the
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   633
     * named attribute, or {@code null}.  The description will be
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   634
     * localized for the supplied {@code Locale} if possible.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   636
     * <p> If {@code locale} is {@code null}, the current
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   637
     * default {@code Locale} returned by {@code Locale.getLocale}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * will be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
     * @param elementName the name of the element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
     * @param attrName the name of the attribute.
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   642
     * @param locale the {@code Locale} for which localization
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * will be attempted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     * @return the attribute description.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   647
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   648
     * is {@code null}, or is not a legal element name for this format.
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   649
     * @exception IllegalArgumentException if {@code attrName} is
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   650
     * {@code null} or is not a legal attribute name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
    String getAttributeDescription(String elementName, String attrName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
                                   Locale locale);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
    // Object value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     * Returns one of the enumerated values starting with
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   660
     * {@code VALUE_}, indicating the type of values
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
     * (enumeration, range, or array) that are allowed for the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   662
     * {@code Object} reference.  If no object value can be
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
     * stored within the given element, the result of this method will
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   664
     * be {@code VALUE_NONE}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   666
     * <p> {@code Object} references whose legal values are
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   667
     * defined as a range must implement the {@code Comparable}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
     * interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   672
     * @return one of the {@code VALUE_*} constants.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   674
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   675
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
     * @see Comparable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
    int getObjectValueType(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   683
     * Returns the {@code Class} type of the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     * reference stored within the element.  If this element may not
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   685
     * contain an {@code Object} reference, an
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   686
     * {@code IllegalArgumentException} will be thrown.  If the
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
     * class type is an array, this field indicates the underlying
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   688
     * class type (<i>e.g</i>, for an array of {@code int}s, this
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   689
     * method would return {@code int.class}).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   691
     * <p> {@code Object} references whose legal values are
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   692
     * defined as a range must implement the {@code Comparable}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
     * interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   697
     * @return a {@code Class} object.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   699
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   700
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   704
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
    Class<?> getObjectClass(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   709
     * Returns an {@code Object}s containing the default
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   710
     * value for the {@code Object} reference within
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
     * the named element.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   715
     * @return an {@code Object}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   717
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   718
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   722
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
    Object getObjectDefaultValue(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   727
     * Returns an array of {@code Object}s containing the legal
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   728
     * enumerated values for the {@code Object} reference within
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
     * the named element.  This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   730
     * {@code getObjectValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   731
     * {@code VALUE_ENUMERATION}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   733
     * <p> The {@code Object} associated with a node that accepts
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
   734
     * enumerated values must be equal to one of the values returned by
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   735
     * this method, as defined by the {@code ==} operator (as
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   736
     * opposed to the {@code Object.equals} method).
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   740
     * @return an array of {@code Object}s.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   742
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   743
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   747
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   748
     * @exception IllegalArgumentException if the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
     * is not defined as an enumeration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
    Object[] getObjectEnumerations(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   754
     * Returns the minimum legal value for the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
     * reference within the named element.  Whether this value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
     * inclusive or exclusive may be determined by the value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   757
     * {@code getObjectValueType}.  This method should only be
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   758
     * called if {@code getObjectValueType} returns one of the
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   759
     * constants starting with {@code VALUE_RANGE}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
     * @return the smallest legal value for the attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   765
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   766
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   770
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   771
     * @exception IllegalArgumentException if the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
     * is not defined as a range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
    Comparable<?> getObjectMinValue(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
    /**
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   777
     * Returns the maximum legal value for the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
     * reference within the named element.  Whether this value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
     * inclusive or exclusive may be determined by the value of
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   780
     * {@code getObjectValueType}.  This method should only be
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   781
     * called if {@code getObjectValueType} returns one of the
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   782
     * constants starting with {@code VALUE_RANGE}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
     * @return the smallest legal value for the attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   788
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   789
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   793
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   794
     * @exception IllegalArgumentException if the {@code Object}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
     * is not defined as a range.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
    Comparable<?> getObjectMaxValue(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
     * Returns the minimum number of array elements that may be used
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   801
     * to define the {@code Object} reference within the named
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
     * element.  This method should only be called if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   803
     * {@code getObjectValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   804
     * {@code VALUE_LIST}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
     * @return the smallest valid array length for the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   809
     * {@code Object} reference.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   811
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   812
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   816
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   817
     * @exception IllegalArgumentException if the {@code Object} is not
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
     * an array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
    int getObjectArrayMinLength(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
     * Returns the maximum number of array elements that may be used
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   824
     * to define the {@code Object} reference within the named
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   825
     * element.  A value of {@code Integer.MAX_VALUE} may be used
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
     * to specify that there is no upper bound.  This method should
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   827
     * only be called if {@code getObjectValueType} returns
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   828
     * {@code VALUE_LIST}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
     * @param elementName the name of the element being queried.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
     * @return the largest valid array length for the
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   833
     * {@code Object} reference.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
     *
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   835
     * @exception IllegalArgumentException if {@code elementName}
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   836
     * is {@code null} or is not a legal element name for this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
     * format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
     * @exception IllegalArgumentException if the named element cannot
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
     * contain an object value (<i>i.e.</i>, if
35667
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   840
     * {@code getObjectValueType(elementName) == VALUE_NONE}).
ed476aba94de 8138838: docs cleanup for java.desktop
avstepan
parents: 25859
diff changeset
   841
     * @exception IllegalArgumentException if the {@code Object} is not
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
     * an array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
    int getObjectArrayMaxLength(String elementName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
}