001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)Extensions.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.wsdl2;
030:
031: import org.w3c.dom.Attr;
032: import org.w3c.dom.Element;
033:
034: /**
035: * API for Extension elements and attributes for a WSDL component.
036: *
037: * @author ApiGen AX.00
038: */
039: public interface Extensions {
040: /**
041: * Get the number of Element items in elements.
042: *
043: * @return The number of Element items in elements
044: */
045: int getElementsLength();
046:
047: /**
048: * Get extension elements by indexed position.
049: *
050: * @param index Indexed position value 0..length-1
051: * @return Extension elements at given <code>index</code> position.
052: */
053: Element getElement(int index);
054:
055: /**
056: * Set extension elements by indexed position.
057: *
058: * @param index Indexed position value (0..length-1) of the item to set
059: * @param theElement Item to add at position <code>index</code>.
060: */
061: void setElement(int index, Element theElement);
062:
063: /**
064: * Append an item to extension elements.
065: *
066: * @param theElement Item to append to elements
067: */
068: void appendElement(Element theElement);
069:
070: /**
071: * Remove extension elements by index position.
072: *
073: * @param index The index position of the element to remove
074: * @return The Element removed, if any.
075: */
076: Element removeElement(int index);
077:
078: /**
079: * Get the number of Attr items in attributes.
080: *
081: * @return The number of Attr items in attributes
082: */
083: int getAttributesLength();
084:
085: /**
086: * Get extension attributes by indexed position.
087: *
088: * @param index Indexed position value 0..length-1
089: * @return Extension attributes at given <code>index</code> position.
090: */
091: Attr getAttribute(int index);
092:
093: /**
094: * Set extension attributes by indexed position.
095: *
096: * @param index Indexed position value (0..length-1) of the item to set
097: * @param theAttribute Item to add at position <code>index</code>.
098: */
099: void setAttribute(int index, Attr theAttribute);
100:
101: /**
102: * Append an item to extension attributes.
103: *
104: * @param theAttribute Item to append to attributes
105: */
106: void appendAttribute(Attr theAttribute);
107:
108: /**
109: * Remove extension attributes by index position.
110: *
111: * @param index The index position of the attribute to remove
112: * @return The Attr removed, if any.
113: */
114: Attr removeAttribute(int index);
115:
116: }
117:
118: // End-of-file: Extensions.java
|