1 7 8 package javax.imageio.metadata; 9 10 import java.util.Locale ; 11 import javax.imageio.ImageTypeSpecifier ; 12 13 55 public interface IIOMetadataFormat { 56 57 59 64 int CHILD_POLICY_EMPTY = 0; 65 66 72 int CHILD_POLICY_ALL = 1; 73 74 81 int CHILD_POLICY_SOME = 2; 82 83 90 int CHILD_POLICY_CHOICE = 3; 91 92 98 int CHILD_POLICY_SEQUENCE = 4; 99 100 106 int CHILD_POLICY_REPEAT = 5; 107 108 112 int CHILD_POLICY_MAX = CHILD_POLICY_REPEAT; 113 114 118 int VALUE_NONE = 0; 119 120 125 int VALUE_ARBITRARY = 1; 126 127 137 int VALUE_RANGE = 2; 138 139 150 int VALUE_RANGE_MIN_INCLUSIVE_MASK = 4; 151 152 163 int VALUE_RANGE_MAX_INCLUSIVE_MASK = 8; 164 165 171 int VALUE_RANGE_MIN_INCLUSIVE = VALUE_RANGE | 172 VALUE_RANGE_MIN_INCLUSIVE_MASK; 173 174 180 int VALUE_RANGE_MAX_INCLUSIVE = VALUE_RANGE | 181 VALUE_RANGE_MAX_INCLUSIVE_MASK; 182 183 191 int VALUE_RANGE_MIN_MAX_INCLUSIVE = 192 VALUE_RANGE | 193 VALUE_RANGE_MIN_INCLUSIVE_MASK | 194 VALUE_RANGE_MAX_INCLUSIVE_MASK; 195 196 207 int VALUE_ENUMERATION = 16; 208 209 217 int VALUE_LIST = 32; 218 219 224 int DATATYPE_STRING = 0; 225 226 231 int DATATYPE_BOOLEAN = 1; 232 233 238 int DATATYPE_INTEGER = 2; 239 240 245 int DATATYPE_FLOAT = 3; 246 247 253 int DATATYPE_DOUBLE = 4; 254 255 257 262 String getRootName(); 263 264 266 282 boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType); 283 284 301 int getElementMinChildren(String elementName); 302 303 321 int getElementMaxChildren(String elementName); 322 323 341 String getElementDescription(String elementName, Locale locale); 342 343 345 358 int getChildPolicy(String elementName); 359 360 374 String [] getChildNames(String elementName); 375 376 378 390 String [] getAttributeNames(String elementName); 391 392 411 int getAttributeValueType(String elementName, String attrName); 412 413 433 int getAttributeDataType(String elementName, String attrName); 434 435 451 boolean isAttributeRequired(String elementName, String attrName); 452 453 472 String getAttributeDefaultValue(String elementName, String attrName); 473 474 495 String [] getAttributeEnumerations(String elementName, String attrName); 496 497 522 String getAttributeMinValue(String elementName, String attrName); 523 524 550 String getAttributeMaxValue(String elementName, String attrName); 551 552 575 int getAttributeListMinLength(String elementName, String attrName); 576 577 602 int getAttributeListMaxLength(String elementName, String attrName); 603 604 626 String getAttributeDescription(String elementName, String attrName, 627 Locale locale); 628 629 631 653 int getObjectValueType(String elementName); 654 655 679 Class <?> getObjectClass(String elementName); 680 681 697 Object getObjectDefaultValue(String elementName); 698 699 724 Object [] getObjectEnumerations(String elementName); 725 726 747 Comparable <?> getObjectMinValue(String elementName); 748 749 770 Comparable <?> getObjectMaxValue(String elementName); 771 772 793 int getObjectArrayMinLength(String elementName); 794 795 817 int getObjectArrayMaxLength(String elementName); 818 } 819 | Popular Tags |