Sun Adapter for SAG API

com.stc.connector.sagadapter.primitive.sw
Class X_sequence_C

java.lang.Object
  extended by com.stc.connector.sagadapter.primitive.sw.X_sequence_C
All Implemented Interfaces:
com.stc.otd.runtime.OtdAsWSDLDocument, com.stc.otd.runtime.OtdNode

public class X_sequence_C
extends java.lang.Object
implements com.stc.otd.runtime.OtdNode, com.stc.otd.runtime.OtdAsWSDLDocument


Constructor Summary
X_sequence_C()
           
X_sequence_C(com.stc.otd.runtime.OtdMeta mObj)
           
 
Method Summary
 int choice()
          For a choice node, returns the index of the valid child.
 int count(int child)
          Returns the number of repetition instances of the given child.
 java.lang.Object get(int child)
           
 java.lang.Object get(int child, int index)
           
 Sw_Digest getSw_Digest()
           
 java.lang.String getSw_FileDescription()
           
 java.lang.String getSw_FileInfo()
           
 java.lang.String getSw_PhysicalName()
           
 java.lang.String getSw_Size()
           
 X_sequence_D getX_sequence_D()
           
 boolean has(int child)
          Tests whether given child is present.
 boolean has(int child, int index)
          Tests whether given instance of a repeated child is present.
 boolean hasSw_Digest()
           
 boolean hasSw_FileDescription()
           
 boolean hasSw_FileInfo()
           
 boolean hasSw_Size()
           
 boolean hasX_sequence_D()
           
 void init0()
           
 void marshal(org.xml.sax.ContentHandler handler, org.xml.sax.ErrorHandler errorHandler, boolean rtMarshal)
           
 com.stc.otd.runtime.OtdMeta meta()
           
 void remove(int child)
          Removes the given child instance.
 void remove(int child, int index)
          Removes the given occurrence of a child instance.
 void set(int child, int index, java.lang.Object value)
          Stores the given child instance.
 void set(int child, java.lang.Object value)
           
 void setSw_Digest(Sw_Digest value)
           
 void setSw_FileDescription(java.lang.String value)
           
 void setSw_FileInfo(java.lang.String value)
           
 void setSw_PhysicalName(java.lang.String value)
           
 void setSw_Size(java.lang.String value)
           
 void setX_sequence_D(X_sequence_D value)
           
 int size(int child)
          Returns one past the last valid index for a repeating child.
 java.lang.String toString()
           
 void unmarshal(org.xml.sax.InputSource inputSource, com.stc.otd.tools.xml.SAXLexer lexer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X_sequence_C

public X_sequence_C(com.stc.otd.runtime.OtdMeta mObj)

X_sequence_C

public X_sequence_C()
Method Detail

init0

public void init0()

meta

public com.stc.otd.runtime.OtdMeta meta()
Specified by:
meta in interface com.stc.otd.runtime.OtdNode

getSw_PhysicalName

public java.lang.String getSw_PhysicalName()

setSw_PhysicalName

public void setSw_PhysicalName(java.lang.String value)

hasSw_FileDescription

public boolean hasSw_FileDescription()
                              throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSw_FileDescription

public java.lang.String getSw_FileDescription()

setSw_FileDescription

public void setSw_FileDescription(java.lang.String value)

hasSw_FileInfo

public boolean hasSw_FileInfo()
                       throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSw_FileInfo

public java.lang.String getSw_FileInfo()

setSw_FileInfo

public void setSw_FileInfo(java.lang.String value)

hasX_sequence_D

public boolean hasX_sequence_D()
                        throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getX_sequence_D

public X_sequence_D getX_sequence_D()

setX_sequence_D

public void setX_sequence_D(X_sequence_D value)

hasSw_Size

public boolean hasSw_Size()
                   throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSw_Size

public java.lang.String getSw_Size()

setSw_Size

public void setSw_Size(java.lang.String value)

hasSw_Digest

public boolean hasSw_Digest()
                     throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSw_Digest

public Sw_Digest getSw_Digest()

setSw_Digest

public void setSw_Digest(Sw_Digest value)

get

public java.lang.Object get(int child)
                     throws java.lang.IndexOutOfBoundsException
Specified by:
get in interface com.stc.otd.runtime.OtdNode
Throws:
java.lang.IndexOutOfBoundsException

get

public java.lang.Object get(int child,
                            int index)
                     throws java.lang.IndexOutOfBoundsException
Specified by:
get in interface com.stc.otd.runtime.OtdNode
Throws:
java.lang.IndexOutOfBoundsException

set

public void set(int child,
                java.lang.Object value)
         throws java.lang.IndexOutOfBoundsException,
                java.lang.IllegalArgumentException
Specified by:
set in interface com.stc.otd.runtime.OtdNode
Throws:
java.lang.IndexOutOfBoundsException
java.lang.IllegalArgumentException

set

public void set(int child,
                int index,
                java.lang.Object value)
         throws java.lang.IndexOutOfBoundsException,
                java.lang.IllegalArgumentException
Stores the given child instance.

Specified by:
set in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent
index - index of child instance in repetition
value - the new child value
Throws:
java.lang.IndexOutOfBoundsException - for invalid index or child
java.lang.IllegalArgumentException - for a type or value error

has

public boolean has(int child)
            throws java.lang.IndexOutOfBoundsException
Tests whether given child is present. For repeated children, tests against collection as a whole.

Specified by:
has in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent
Throws:
java.lang.IndexOutOfBoundsException - for invalid child

has

public boolean has(int child,
                   int index)
            throws java.lang.IndexOutOfBoundsException
Tests whether given instance of a repeated child is present.

Specified by:
has in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent
index - index of child instance in repetition, from 0
Throws:
java.lang.IndexOutOfBoundsException - for invalid index or child

count

public int count(int child)
Returns the number of repetition instances of the given child. For a non-repeating node, this should return 1.

Specified by:
count in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent
Returns:
the repetition index
Throws:
java.lang.IndexOutOfBoundsException - for invalid child

size

public int size(int child)
Returns one past the last valid index for a repeating child. For a non-repeating node, this should return 1.

Specified by:
size in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent
Returns:
the repetition index
Throws:
java.lang.IndexOutOfBoundsException - for invalid child

choice

public int choice()
For a choice node, returns the index of the valid child.

Specified by:
choice in interface com.stc.otd.runtime.OtdNode
Returns:
-1

remove

public void remove(int child)
Removes the given child instance. The child must be optional.

Specified by:
remove in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent, from 0
Throws:
java.lang.IndexOutOfBoundsException - for invalid or mandatory child

remove

public void remove(int child,
                   int index)
Removes the given occurrence of a child instance. The child must be repeated. The implementation is allowed (but not required) to throw an exception if the child is absent. A subsequent has(child, index) call with the same arguments should return false.

Specified by:
remove in interface com.stc.otd.runtime.OtdNode
Parameters:
child - index of child below this parent, from 0
index - index of child instance in repetition, from 0
Throws:
java.lang.IndexOutOfBoundsException - for invalid or non-repeating child

unmarshal

public void unmarshal(org.xml.sax.InputSource inputSource,
                      com.stc.otd.tools.xml.SAXLexer lexer)
               throws org.xml.sax.SAXException,
                      com.stc.otd.runtime.UnmarshalException
Throws:
org.xml.sax.SAXException
com.stc.otd.runtime.UnmarshalException

marshal

public void marshal(org.xml.sax.ContentHandler handler,
                    org.xml.sax.ErrorHandler errorHandler,
                    boolean rtMarshal)
             throws com.stc.otd.runtime.MarshalException,
                    org.xml.sax.SAXException
Throws:
com.stc.otd.runtime.MarshalException
org.xml.sax.SAXException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Sun Adapter for SAG API

Copyright © 2008 Sun Microsystems, Inc. All rights reserved.