Package org.exolab.castor.builder.info

Examples of org.exolab.castor.builder.info.NodeType


        jsc.add("desc = (org.exolab.castor.xml.util.XMLFieldDescriptorImpl) getFieldDescriptor(\"");
        XMLInfoNature xmlNature = new XMLInfoNature(member);
        jsc.append(xmlNature.getNodeName());
        jsc.append("\"");
        jsc.append(", _nsURI");
        NodeType nodeType = xmlNature.getNodeType();
        if (nodeType == NodeType.ELEMENT) {
            jsc.append(", org.exolab.castor.xml.NodeType.Element);");
        } else if (nodeType == NodeType.ATTRIBUTE) {
            jsc.append(", org.exolab.castor.xml.NodeType.Attribute);");
        } else {
View Full Code Here


       
        XSType xsType = xmlNature.getSchemaType();
        XSType xsCollectionType = null;
       
        boolean any         = false;
        NodeType nodeType = xmlNature.getNodeType();
        boolean isElement   = (nodeType == NodeType.ELEMENT);
        boolean isAttribute = (nodeType == NodeType.ATTRIBUTE);
        boolean isText      = (nodeType == NodeType.TEXT);

        jsc.add("//-- ");
View Full Code Here

        XMLInfoNature xmlNature = new XMLInfoNature(member);
       
        XSType xsType = xmlNature.getSchemaType();

        boolean any = false;
        NodeType nodeType = xmlNature.getNodeType();
        boolean isAttribute = (nodeType == NodeType.ATTRIBUTE);
        boolean isText = (nodeType == NodeType.TEXT);

        //-- a hack, I know, I will change later (kv)
        if (member.getName().equals("_anyObject")) {
View Full Code Here

        jsc.add("handler = new org.exolab.castor.xml.XMLFieldHandler() {");
        jsc.indent();

        createGetValueMethod(member, xsType, localClassName, jsc);

        NodeType nodeType = xmlNature.getNodeType();
        boolean isAttribute = (nodeType == NodeType.ATTRIBUTE);
        boolean isContent = (nodeType == NodeType.TEXT);

        createSetValueMethod(member, xsType, localClassName, jsc, any, isAttribute, isContent);
        createResetMethod(member, localClassName, jsc);
View Full Code Here

     * <code>XMLInfo.ELEMENT_TYPE</code> if property is not set.
     *
     * @return the node type for the object described by this XMLInfo
     */
    public NodeType getNodeType() {
        NodeType nodeType = (NodeType) this.getProperty(NODE_TYPE);
        if (nodeType == null) {
            return NodeType.ELEMENT;
        }
        return nodeType;
    }
View Full Code Here

     *
     * @return the name of the node-type of the object described by this
     *         XMLInfo.
     */
    public String getNodeTypeName() {
        NodeType nodeType = getNodeType();
        switch (nodeType) {
        case ATTRIBUTE:
            return "attribute";
        case ELEMENT:
            return "element";
View Full Code Here

TOP

Related Classes of org.exolab.castor.builder.info.NodeType

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.