Package org.apache.schemas.yoko.bindings.corba

Examples of org.apache.schemas.yoko.bindings.corba.Anonstring


                mappingType.getStructOrExceptionOrUnion().add(arrayType);
            } else if (currentNode.getNodeName().equals("corba:sequence")) {
                Sequence sequenceType = getSequenceDefinition(currentNode, def);
                mappingType.getStructOrExceptionOrUnion().add(sequenceType);
            } else if (currentNode.getNodeName().equals("corba:anonstring")) {
                Anonstring anonstringType = getAnonStringDefinition(currentNode, def);
                mappingType.getStructOrExceptionOrUnion().add(anonstringType);
            } else if (currentNode.getNodeName().equals("corba:anonwstring")) {
                Anonstring anonstringType = getAnonWStringDefinition(currentNode, def);
                mappingType.getStructOrExceptionOrUnion().add(anonstringType);
            } else if (currentNode.getNodeName().equals("corba:anonfixed")) {
                Anonfixed anonfixedType = getAnonFixedDefinition(currentNode, def);
                mappingType.getStructOrExceptionOrUnion().add(anonfixedType);
            } else if (currentNode.getNodeName().equals("corba:anonsequence")) {
View Full Code Here


        }
        return sequenceType;
    }

    public Anonstring getAnonStringDefinition(Node node, Definition def) {
        Anonstring anonStringType = new Anonstring();

        // Store information about the fixed type
        NamedNodeMap anonStringAttributes = node.getAttributes();
        for (int i = 0; i < anonStringAttributes.getLength(); ++i) {
            if (anonStringAttributes.item(i).getNodeName().equals("name")) {
                anonStringType.setName(anonStringAttributes.item(i).getNodeValue());
            } else if (anonStringAttributes.item(i).getNodeName().equals("bound")) {
                anonStringType.setBound(new Long(anonStringAttributes.item(i).getNodeValue()));
            }
        }
        return anonStringType;
    }
View Full Code Here

        }
        return anonStringType;
    }

    public Anonstring getAnonWStringDefinition(Node node, Definition def) {
        Anonstring anonStringType = new Anonstring();

        // Store information about the fixed type
        NamedNodeMap anonStringAttributes = node.getAttributes();
        for (int i = 0; i < anonStringAttributes.getLength(); ++i) {
            if (anonStringAttributes.item(i).getNodeName().equals("name")) {
                anonStringType.setName(anonStringAttributes.item(i).getNodeValue());
            } else if (anonStringAttributes.item(i).getNodeName().equals("bound")) {
                anonStringType.setBound(new Long(anonStringAttributes.item(i).getNodeValue()));
            }
        }
        return anonStringType;
    }
View Full Code Here

    private IdlType checkAnon(CorbaTypeImpl corbaTypeImpl, IdlScopeBase scope,
                              String local) throws Exception {
        IdlType result = null;
       
        if (corbaTypeImpl instanceof Anonstring) {
            Anonstring as = (Anonstring)corbaTypeImpl;  
            Long lbound = as.getBound();
            int bound = lbound.intValue()
            result = IdlString.create(bound);       
        }
        return result;
    }
View Full Code Here

        } else if (obj instanceof Anonsequence) {
            Anonsequence anonSeqType = (Anonsequence)obj;
            tc = orb.create_sequence_tc((int) anonSeqType.getBound(),
                                        getTypeCode(orb, anonSeqType.getElemtype(), typeMaps));
        } else if (obj instanceof Anonstring) {
            Anonstring anonStringType = (Anonstring)obj;
            tc = orb.create_string_tc((int)anonStringType.getBound());
        } else if (obj instanceof Anonwstring) {
            Anonwstring anonWStringType = (Anonwstring)obj;
            tc = orb.create_wstring_tc((int)anonWStringType.getBound());
        } else if (obj instanceof Array) {
            Array arrayType = (Array)obj;
View Full Code Here

TOP

Related Classes of org.apache.schemas.yoko.bindings.corba.Anonstring

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.