< prev index next >

src/java.desktop/share/classes/javax/imageio/metadata/IIOMetadataNode.java

Print this page




 945     public Object getUserObject() {
 946         return userObject;
 947     }
 948 
 949     /**
 950      * Sets the value associated with this node.
 951      *
 952      * @param userObject the user <code>Object</code>.
 953      *
 954      * @see #getUserObject
 955      */
 956     public void setUserObject(Object userObject) {
 957         this.userObject = userObject;
 958     }
 959 
 960     // Start of dummy methods for DOM L3.
 961 
 962     /**
 963      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 964      * and will throw a {@code DOMException}.
 965      * @throws DOMException - always.
 966      */
 967     public void setIdAttribute(String name,
 968                                boolean isId)
 969                                throws DOMException {
 970         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 971                                "Method not supported");
 972     }
 973 
 974     /**
 975      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 976      * and will throw a {@code DOMException}.
 977      * @throws DOMException - always.
 978      */
 979     public void setIdAttributeNS(String namespaceURI,
 980                                  String localName,
 981                                  boolean isId)
 982                                  throws DOMException {
 983         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 984                                "Method not supported");
 985     }
 986 
 987     /**
 988      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 989      * and will throw a {@code DOMException}.
 990      * @throws DOMException - always.
 991      */
 992     public void setIdAttributeNode(Attr idAttr,
 993                                    boolean isId)
 994                                    throws DOMException {
 995         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 996                                "Method not supported");
 997     }
 998 
 999     /**
1000      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1001      * and will throw a {@code DOMException}.
1002      * @throws DOMException - always.
1003      */
1004     public TypeInfo getSchemaTypeInfo() throws DOMException {
1005         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1006                                "Method not supported");
1007     }
1008 
1009     /**
1010      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1011      * and will throw a {@code DOMException}.
1012      * @throws DOMException - always.
1013      */
1014     public Object setUserData(String key,
1015                               Object data,
1016                               UserDataHandler handler) throws DOMException {
1017         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1018                                "Method not supported");
1019     }
1020 
1021     /**
1022      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1023      * and will throw a {@code DOMException}.
1024      * @throws DOMException - always.
1025      */
1026     public Object getUserData(String key) throws DOMException {
1027         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1028                                "Method not supported");
1029     }
1030 
1031     /**
1032      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1033      * and will throw a {@code DOMException}.
1034      * @throws DOMException - always.
1035      */
1036     public Object getFeature(String feature, String version)
1037                               throws DOMException {
1038         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1039                                "Method not supported");
1040     }
1041 
1042     /**
1043      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1044      * and will throw a {@code DOMException}.
1045      * @throws DOMException - always.
1046      */
1047     public boolean isSameNode(Node node) throws DOMException {
1048         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1049                                "Method not supported");
1050     }
1051 
1052     /**
1053      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1054      * and will throw a {@code DOMException}.
1055      * @throws DOMException - always.
1056      */
1057     public boolean isEqualNode(Node node) throws DOMException {
1058         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1059                                "Method not supported");
1060     }
1061 
1062     /**
1063      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1064      * and will throw a {@code DOMException}.
1065      * @throws DOMException - always.
1066      */
1067     public String lookupNamespaceURI(String prefix) throws DOMException {
1068         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1069                                "Method not supported");
1070     }
1071 
1072     /**
1073      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1074      * and will throw a {@code DOMException}.
1075      * @throws DOMException - always.
1076      */
1077     public boolean isDefaultNamespace(String namespaceURI)
1078                                                throws DOMException {
1079         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1080                                "Method not supported");
1081     }
1082 
1083     /**
1084      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1085      * and will throw a {@code DOMException}.
1086      * @throws DOMException - always.
1087      */
1088     public String lookupPrefix(String namespaceURI) throws DOMException {
1089         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1090                                "Method not supported");
1091     }
1092 
1093     /**
1094      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1095      * and will throw a {@code DOMException}.
1096      * @throws DOMException - always.
1097      */
1098     public String getTextContent() throws DOMException {
1099         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1100                                "Method not supported");
1101     }
1102 
1103     /**
1104      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1105      * and will throw a {@code DOMException}.
1106      * @throws DOMException - always.
1107      */
1108     public void setTextContent(String textContent) throws DOMException {
1109         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1110                                "Method not supported");
1111     }
1112 
1113     /**
1114      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1115      * and will throw a {@code DOMException}.
1116      * @throws DOMException - always.
1117      */
1118     public short compareDocumentPosition(Node other)
1119                                          throws DOMException {
1120         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1121                                "Method not supported");
1122     }
1123 
1124     /**
1125      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1126      * and will throw a {@code DOMException}.
1127      * @throws DOMException - always.
1128      */
1129     public String getBaseURI() throws DOMException {
1130         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1131                                "Method not supported");
1132     }
1133     //End of dummy methods for DOM L3.
1134 
1135 
1136 }


 945     public Object getUserObject() {
 946         return userObject;
 947     }
 948 
 949     /**
 950      * Sets the value associated with this node.
 951      *
 952      * @param userObject the user <code>Object</code>.
 953      *
 954      * @see #getUserObject
 955      */
 956     public void setUserObject(Object userObject) {
 957         this.userObject = userObject;
 958     }
 959 
 960     // Start of dummy methods for DOM L3.
 961 
 962     /**
 963      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 964      * and will throw a {@code DOMException}.
 965      * @throws DOMException always.
 966      */
 967     public void setIdAttribute(String name,
 968                                boolean isId)
 969                                throws DOMException {
 970         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 971                                "Method not supported");
 972     }
 973 
 974     /**
 975      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 976      * and will throw a {@code DOMException}.
 977      * @throws DOMException always.
 978      */
 979     public void setIdAttributeNS(String namespaceURI,
 980                                  String localName,
 981                                  boolean isId)
 982                                  throws DOMException {
 983         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 984                                "Method not supported");
 985     }
 986 
 987     /**
 988      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
 989      * and will throw a {@code DOMException}.
 990      * @throws DOMException always.
 991      */
 992     public void setIdAttributeNode(Attr idAttr,
 993                                    boolean isId)
 994                                    throws DOMException {
 995         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
 996                                "Method not supported");
 997     }
 998 
 999     /**
1000      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1001      * and will throw a {@code DOMException}.
1002      * @throws DOMException always.
1003      */
1004     public TypeInfo getSchemaTypeInfo() throws DOMException {
1005         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1006                                "Method not supported");
1007     }
1008 
1009     /**
1010      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1011      * and will throw a {@code DOMException}.
1012      * @throws DOMException always.
1013      */
1014     public Object setUserData(String key,
1015                               Object data,
1016                               UserDataHandler handler) throws DOMException {
1017         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1018                                "Method not supported");
1019     }
1020 
1021     /**
1022      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1023      * and will throw a {@code DOMException}.
1024      * @throws DOMException always.
1025      */
1026     public Object getUserData(String key) throws DOMException {
1027         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1028                                "Method not supported");
1029     }
1030 
1031     /**
1032      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1033      * and will throw a {@code DOMException}.
1034      * @throws DOMException always.
1035      */
1036     public Object getFeature(String feature, String version)
1037                               throws DOMException {
1038         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1039                                "Method not supported");
1040     }
1041 
1042     /**
1043      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1044      * and will throw a {@code DOMException}.
1045      * @throws DOMException always.
1046      */
1047     public boolean isSameNode(Node node) throws DOMException {
1048         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1049                                "Method not supported");
1050     }
1051 
1052     /**
1053      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1054      * and will throw a {@code DOMException}.
1055      * @throws DOMException always.
1056      */
1057     public boolean isEqualNode(Node node) throws DOMException {
1058         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1059                                "Method not supported");
1060     }
1061 
1062     /**
1063      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1064      * and will throw a {@code DOMException}.
1065      * @throws DOMException always.
1066      */
1067     public String lookupNamespaceURI(String prefix) throws DOMException {
1068         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1069                                "Method not supported");
1070     }
1071 
1072     /**
1073      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1074      * and will throw a {@code DOMException}.
1075      * @throws DOMException always.
1076      */
1077     public boolean isDefaultNamespace(String namespaceURI)
1078                                                throws DOMException {
1079         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1080                                "Method not supported");
1081     }
1082 
1083     /**
1084      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1085      * and will throw a {@code DOMException}.
1086      * @throws DOMException always.
1087      */
1088     public String lookupPrefix(String namespaceURI) throws DOMException {
1089         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1090                                "Method not supported");
1091     }
1092 
1093     /**
1094      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1095      * and will throw a {@code DOMException}.
1096      * @throws DOMException always.
1097      */
1098     public String getTextContent() throws DOMException {
1099         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1100                                "Method not supported");
1101     }
1102 
1103     /**
1104      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1105      * and will throw a {@code DOMException}.
1106      * @throws DOMException always.
1107      */
1108     public void setTextContent(String textContent) throws DOMException {
1109         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1110                                "Method not supported");
1111     }
1112 
1113     /**
1114      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1115      * and will throw a {@code DOMException}.
1116      * @throws DOMException always.
1117      */
1118     public short compareDocumentPosition(Node other)
1119                                          throws DOMException {
1120         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1121                                "Method not supported");
1122     }
1123 
1124     /**
1125      * This DOM Level 3 method is not supported for {@code IIOMetadataNode}
1126      * and will throw a {@code DOMException}.
1127      * @throws DOMException always.
1128      */
1129     public String getBaseURI() throws DOMException {
1130         throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
1131                                "Method not supported");
1132     }
1133     //End of dummy methods for DOM L3.
1134 
1135 
1136 }
< prev index next >