Package org.objectweb.celtix.configuration.impl

Examples of org.objectweb.celtix.configuration.impl.TypeSchemaHelper


    public Object getValue() {
        Object o = super.getValue();
        if (o instanceof Element) {
            Element el = (Element)o;
            QName type = new QName(el.getNamespaceURI(), el.getLocalName());
            TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
            if (null == ts) {
                throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
            }
            try {
                return ts.unmarshal(type, el);
View Full Code Here


                Node node = chainNodes.item(i);
                if (Node.ELEMENT_NODE == node.getNodeType()
                    && HANDLER_CHAIN_ELEM_NAME.equals(getNodeName(node))) {

                    String location = "schemas/configuration/jaxws-types.xsd";
                    TypeSchema ts = new TypeSchemaHelper(true).get(JAXWS_TYPES_URI, null, location);

                    ConfigurationItemMetadata mdi = new ConfigurationItemMetadata() {
                        public Object getDefaultValue() {
                            return null;
                        }
View Full Code Here

    public Object getValue() {
        Object o = super.getValue();
        if (o instanceof Element) {
            Element el = (Element)o;
            QName type = new QName(el.getNamespaceURI(), el.getLocalName());
            TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
            if (null == ts) {
                throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
            }
            try {
                return ts.unmarshal(type, el);
View Full Code Here

    public Object getValue() {
        Object o = super.getValue();
        if (o instanceof Element) {
            Element el = (Element)o;
            QName type = new QName(el.getNamespaceURI(), el.getLocalName());
            TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
            if (null == ts) {
                throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
            }
            try {
                return ts.unmarshal(type, el);
View Full Code Here

        String baseType = null;
        TypeSchema ts = null;
        if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(typeName.getNamespaceURI())) {
            baseType = typeName.getLocalPart();
        } else {
            ts = new TypeSchemaHelper(false).get(typeName.getNamespaceURI());
            baseType = ts.getXMLSchemaBaseType(typeName.getLocalPart());
        }
        String className = null;
        if (null != baseType) {
            className = JAXBUtils.builtInTypeToJavaType(baseType);
View Full Code Here

        element.getNamespaceURI();
        EasyMock.expectLastCall().andReturn(testURI);
        element.getLocalName();
        EasyMock.expectLastCall().andReturn(typename);
        TypeSchema ts = org.easymock.classextension.EasyMock.createMock(TypeSchema.class);
        TypeSchemaHelper tsh = new TypeSchemaHelper(true);
        tsh.put(testURI, ts);
        ts.unmarshal(new QName(testURI, typename), element);
        EasyMock.expectLastCall().andReturn(value);
        EasyMock.replay(element);
        org.easymock.classextension.EasyMock.replay(ts);
      
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.configuration.impl.TypeSchemaHelper

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.