Package com.volantis.mcs.service

Examples of com.volantis.mcs.service.CharacteristicNotAvailableException


    // javadoc inherited
    public ImmutableMetaDataValue getCharacteristic(String path)
            throws CharacteristicNotAvailableException {
        if (path == null || path.trim().length() == 0) {
            throw new CharacteristicNotAvailableException(
                        exceptionLocalizer.format("service-def-path-failure",
                                                  new String[] {path,
                                                                getName()}));
        }
        // let the CharacteristicAccessor do the work
View Full Code Here


         * This method should be invoked to assert that the path has been
         * resolved correctly. i.e the structure has been navigated
         */
        private void assertAllNodesVisisted() {
            if (!processor.isEmpty()) {
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

            }
        }

        private void assertFieldAvaliable(Map fields, String field) {
            if (fields.get(field) == null) {
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

        private void assertFieldNext() {
            if (!processor.isPath()) {
                // We need the next path node to be a predicate but it is
                // a key. Throw an excpetion
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

        }
        private void assertPredicateNext() {
            if (processor.isPath()) {
                // We need the next path node to be a predicate but it is
                // a key. Throw an excpetion
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

        };

        private void assertIndexValid(Collection collection, int index) {
            if (index < 0 || index >= collection.size()) {
                // index is out of bounds
                CharacteristicNotAvailableException e =
                        new CharacteristicNotAvailableException(
                                exceptionLocalizer.format(
                                    "service-def-path-failure",
                                    new String[] {xpath, serviceName}));
                throw new RuntimeCharacteristicNotAvailableException(e);
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.service.CharacteristicNotAvailableException

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.