Package org.jitterbit.integration.structure.crom

Examples of org.jitterbit.integration.structure.crom.CROM.addType()


    public static Node insertOldValueNode(TreeComponent tree, Node node) {
        if (!isLdapAttribute(tree, node)) {
            return null;
        }
        CROM dn = new CROM(node.m_CROM, false, LdapStringConstants.old_value_string, 1, node.m_CROM.m_CromType);
        dn.addType(CROM.CROM_t_Attribute | CROM.CROM_t_Optional);
        dn.setValueType("String");
        return new Node(tree, node, dn);
    }

    public static void setLdapAttributeType(TreeComponent tree, Node node, String cmd){
View Full Code Here


        m_deHashtable.clear();
        m_deHashtable.put(parent.m_deName, parent);
        m_CROM_Tree = cromTree;
        CROM crom_root = cromTree.getRoot();
        if (crom_root != null) {
            crom_root.addType(CROM.CROM_t_Root);
            // this method create a Node for m_CROM_Tree.m_root and also create Node for its
            // children recursively
            // furthermore it will explode the children if possible.
            // the exploding will terminate if the complex type define
            // 1. a derived_type_holder
View Full Code Here

                CROM_Attr crom_attr = new CROM_Attr(attributes, stringMap);
                CROM crom = crom_stack.peek();
                crom.setExtension(crom_attr);
                String valueType = crom_attr.getValueType();
                if (crom.m_CromType == CromType.CROM_t_Text && valueType != null && !valueType.equals("Identifier")) {
                    crom.addType(CROM.CROM_t_Optional);
                }
            } else if (qName.equals(CromToXmlWriterConstants.TYPE_EXTENSIONS)) {
                parseXmlTypeExtensions(attributes);
            } else if (qName.equals(CromToXmlWriterConstants.SUBSTITUTION_GROUPS)) {
                parseXmlSubstitutionGroups(attributes);
View Full Code Here

    }
   
    private static void addCommandNode(CROM parent, String cmd_name) {
        CROM dn = new CROM(parent, false, cmd_name, 1, CromType.CROM_t_Ldap);
        dn.addType(CROM.CROM_t_Attribute | CROM.CROM_t_Optional);
        dn.setValueType("String");
    }
}
View Full Code Here

            this.mode = mode;
        }
       
        public CROM createCrom(String className) {
            CROM node = new CROM(null, true, className, 0, CromType.CROM_t_Ldap);
            node.addType(CROM.CROM_t_Element | CROM.CROM_t_Collection);
            addDistinguishedNameNode(node);
            mode.addToClassNode(node);
            return node;
        }
       
View Full Code Here

           
        }

        private void insertValueNode(LdapStructureAttribute attr, CROM parent) {
            CROM value = new CROM(parent, false, "", 0, CromType.CROM_t_Ldap);
            value.addType(CROM.CROM_t_Value|CROM.CROM_t_Optional);
            if (attr.isReadOnly()) {
                value.addType(CROM.CROM_t_ReadOnly);
            }
            AttributeDataType dataType = attr.getSyntaxInfo().getDataType();
            value.setValueType(dataType.toString());
View Full Code Here

        private void insertValueNode(LdapStructureAttribute attr, CROM parent) {
            CROM value = new CROM(parent, false, "", 0, CromType.CROM_t_Ldap);
            value.addType(CROM.CROM_t_Value|CROM.CROM_t_Optional);
            if (attr.isReadOnly()) {
                value.addType(CROM.CROM_t_ReadOnly);
            }
            AttributeDataType dataType = attr.getSyntaxInfo().getDataType();
            value.setValueType(dataType.toString());
        }
       
View Full Code Here

            value.setValueType(dataType.toString());
        }
       
        private void insertOldValueNode(LdapStructureAttribute attr, CROM parent) {
            CROM old_value = new CROM(parent, false, LdapStringConstants.old_value_string, 1, CromType.CROM_t_Ldap);
            old_value.addType(CROM.CROM_t_Attribute|CROM.CROM_t_Optional);
            AttributeDataType dataType = attr.getSyntaxInfo().getDataType();
            old_value.setValueType(dataType.toString());
        }

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.