1 /*
2 * Copyright (c) 2004 World Wide Web Consortium,
3 *
4 * (Massachusetts Institute of Technology, European Research Consortium for
5 * Informatics and Mathematics, Keio University). All Rights Reserved. This
6 * work is distributed under the W3C(r) Software License [1] in the hope that
7 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
8 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 *
10 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
11 */
13 package org.w3c.dom.views;
15 import org.w3c.dom.Node;
17 /**
18 * The <code>ContentItem</code> represents a content property to be fetched by
19 * a <code>Segment</code>.
20 * <p>See also the <a href='http://www.w3.org/TR/2004/NOTE-DOM-Level-3-Views-20040226'>Document Object Model (DOM) Level 3 Views and Formatting
21 Specification</a>.
22 * @since DOM Level 3
23 */
24 public interface ContentItem extends Item {
25 /**
26 * The <code>Node</code> value returned by the <code>Segment</code>, which
27 * is undefined if <code>exists</code> is false.
28 */
29 public Node getNodeArg();
30 /**
31 * The <code>Node</code> value returned by the <code>Segment</code>, which
32 * is undefined if <code>exists</code> is false.
33 */
34 public void setNodeArg(Node nodeArg);
36 /**
37 * The offset value returned by the <code>Segment</code>, which is
38 * undefined if <code>exists</code> is false.
39 */
40 public int getOffset();
41 /**
42 * The offset value returned by the <code>Segment</code>, which is
43 * undefined if <code>exists</code> is false.
44 */
45 public void setOffset(int offset);
47 }