Sun Adapter for SAG API

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

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

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


Constructor Summary
X_choice_Q()
           
X_choice_Q(com.stc.otd.runtime.OtdMeta mObj)
           
 
Method Summary
 java.lang.Object addSwSec_Crypto()
           
 java.lang.Object addSwSec_SignatureList()
           
 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.
 int countSwSec_Crypto()
          countXXX() reutrns number of repeated Objects excluding holes.
 int countSwSec_SignatureList()
          countXXX() reutrns number of repeated Objects excluding holes.
 java.lang.Object get(int child)
           
 java.lang.Object get(int child, int index)
           
 java.util.Map getmapSwSec_Crypto()
           
 java.util.Map getmapSwSec_SignatureList()
           
 java.lang.Object getruntimeimplSwSec_Crypto()
           
 java.lang.Object getruntimeimplSwSec_SignatureList()
           
 SwSec_Crypto[] getSwSec_Crypto()
           
 SwSec_Crypto getSwSec_Crypto(int index)
          for internal use only to get a branch object
 java.util.ArrayList getSwSec_CryptoList()
           
 SwSec_SignatureList[] getSwSec_SignatureList()
           
 SwSec_SignatureList getSwSec_SignatureList(int index)
          for internal use only to get a branch object
 java.util.ArrayList getSwSec_SignatureListList()
           
 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 hasSwSec_Crypto()
           
 boolean hasSwSec_Crypto(int child)
           
 boolean hasSwSec_SignatureList()
           
 boolean hasSwSec_SignatureList(int child)
           
 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 removeSwSec_Crypto()
           
 void removeSwSec_Crypto(int index)
           
 void removeSwSec_SignatureList()
           
 void removeSwSec_SignatureList(int index)
           
 void set(int child, int index, java.lang.Object value)
          Stores the given child instance.
 void set(int child, java.lang.Object value)
           
 void setmapSwSec_Crypto(java.util.Map value)
           
 void setmapSwSec_SignatureList(java.util.Map value)
           
 void setSwSec_Crypto(int index, SwSec_Crypto value)
           
 void setSwSec_Crypto(com.stc.otd.runtime.provider.RepeatDTDXSDImpl value)
           
 void setSwSec_Crypto(SwSec_Crypto[] value)
           
 void setSwSec_SignatureList(int index, SwSec_SignatureList value)
           
 void setSwSec_SignatureList(com.stc.otd.runtime.provider.RepeatDTDXSDImpl value)
           
 void setSwSec_SignatureList(SwSec_SignatureList[] value)
           
 int size(int child)
          Returns one past the last valid index for a repeating child.
 int sizeSwSec_Crypto()
          sizeXXX() returns number of repeated Objects including holes
 int sizeSwSec_SignatureList()
          sizeXXX() returns number of repeated Objects including holes
 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_choice_Q

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

X_choice_Q

public X_choice_Q()
Method Detail

init0

public void init0()

meta

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

hasSwSec_Crypto

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

hasSwSec_Crypto

public boolean hasSwSec_Crypto(int child)
                        throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSwSec_CryptoList

public java.util.ArrayList getSwSec_CryptoList()

getSwSec_Crypto

public SwSec_Crypto[] getSwSec_Crypto()

getmapSwSec_Crypto

public java.util.Map getmapSwSec_Crypto()

getruntimeimplSwSec_Crypto

public java.lang.Object getruntimeimplSwSec_Crypto()

setmapSwSec_Crypto

public void setmapSwSec_Crypto(java.util.Map value)

setSwSec_Crypto

public void setSwSec_Crypto(com.stc.otd.runtime.provider.RepeatDTDXSDImpl value)

setSwSec_Crypto

public void setSwSec_Crypto(SwSec_Crypto[] value)

removeSwSec_Crypto

public void removeSwSec_Crypto()

getSwSec_Crypto

public SwSec_Crypto getSwSec_Crypto(int index)
                             throws java.lang.IndexOutOfBoundsException
for internal use only to get a branch object

Throws:
java.lang.IndexOutOfBoundsException

setSwSec_Crypto

public void setSwSec_Crypto(int index,
                            SwSec_Crypto value)

removeSwSec_Crypto

public void removeSwSec_Crypto(int index)

addSwSec_Crypto

public java.lang.Object addSwSec_Crypto()

countSwSec_Crypto

public int countSwSec_Crypto()
countXXX() reutrns number of repeated Objects excluding holes.


sizeSwSec_Crypto

public int sizeSwSec_Crypto()
sizeXXX() returns number of repeated Objects including holes


hasSwSec_SignatureList

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

hasSwSec_SignatureList

public boolean hasSwSec_SignatureList(int child)
                               throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getSwSec_SignatureListList

public java.util.ArrayList getSwSec_SignatureListList()

getSwSec_SignatureList

public SwSec_SignatureList[] getSwSec_SignatureList()

getmapSwSec_SignatureList

public java.util.Map getmapSwSec_SignatureList()

getruntimeimplSwSec_SignatureList

public java.lang.Object getruntimeimplSwSec_SignatureList()

setmapSwSec_SignatureList

public void setmapSwSec_SignatureList(java.util.Map value)

setSwSec_SignatureList

public void setSwSec_SignatureList(com.stc.otd.runtime.provider.RepeatDTDXSDImpl value)

setSwSec_SignatureList

public void setSwSec_SignatureList(SwSec_SignatureList[] value)

removeSwSec_SignatureList

public void removeSwSec_SignatureList()

getSwSec_SignatureList

public SwSec_SignatureList getSwSec_SignatureList(int index)
                                           throws java.lang.IndexOutOfBoundsException
for internal use only to get a branch object

Throws:
java.lang.IndexOutOfBoundsException

setSwSec_SignatureList

public void setSwSec_SignatureList(int index,
                                   SwSec_SignatureList value)

removeSwSec_SignatureList

public void removeSwSec_SignatureList(int index)

addSwSec_SignatureList

public java.lang.Object addSwSec_SignatureList()

countSwSec_SignatureList

public int countSwSec_SignatureList()
countXXX() reutrns number of repeated Objects excluding holes.


sizeSwSec_SignatureList

public int sizeSwSec_SignatureList()
sizeXXX() returns number of repeated Objects including holes


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.