/** * Construct an element key with the given id, datatype, and element type. * This is used for elements that contain text content. * * <p>The {@code elementType} must not be {@code null}. A null id is only * valid for element types that are a subclass of {@link Element}, and are * used as a key referring to all instances of that element type. */ public static <T, V extends Element> ElementKey<T, V> of(QName id, Class<? extends T> datatype, Class<? extends V> elementType) { return new ElementKey<T, V>(id, datatype, elementType); }
/** * Construct an element key with the given id, datatype, and element type. * This is used for elements that contain text content. * * <p>The {@code elementType} must not be {@code null}. A null id is only * valid for element types that are a subclass of {@link Element}, and are * used as a key referring to all instances of that element type. */ public static <T, V extends Element> ElementKey<T, V> of(QName id, Class<? extends T> datatype, Class<? extends V> elementType) { return new ElementKey<T, V>(id, datatype, elementType); }
/** * Construct an element key with the given id, datatype, and element type. * This is used for elements that contain text content. * * <p>The {@code elementType} must not be {@code null}. A null id is only * valid for element types that are a subclass of {@link Element}, and are * used as a key referring to all instances of that element type. */ public static <T, V extends Element> ElementKey<T, V> of(QName id, Class<? extends T> datatype, Class<? extends V> elementType) { return new ElementKey<T, V>(id, datatype, elementType); }