Package com.volantis.shared.metadata.value.immutable

Examples of com.volantis.shared.metadata.value.immutable.ImmutableMetaDataValue


    public ImmutableMetaDataValue getPolicyMetaDataValue(String policyName) {
        ensureValid();

        InternalPolicyValue policyValue = (InternalPolicyValue)
                getRealPolicyValue(policyName);
        ImmutableMetaDataValue metaDataValue;
        if (policyValue == null) {
            metaDataValue = null;
        } else {
            metaDataValue = policyValue.createMetaDataValue();
        }
View Full Code Here


                     TEST_SERVICE_NAME,
                     service.getName());
    }

    public void testSimpleKeyIntoMap() throws Exception {
        ImmutableMetaDataValue value =
                   createService().getCharacteristic("key4");
        assertImmutableStringValue(value, "z-string");
    }
View Full Code Here

                   createService().getCharacteristic("key4");
        assertImmutableStringValue(value, "z-string");
    }

    public void testMapRetrieval() throws Exception {
        ImmutableMetaDataValue value = createService().getCharacteristic("/key1");
        // we should have an ImmutableStructureValue of the form
        // keyA/a-string
        // keyB/11
        ImmutableStructureValue struct = assertImmutableStructure(value, 2);
        // check that there is a string "a-string" at keyA
View Full Code Here

        assertImmutableNumberValue((ImmutableMetaDataValue) map.get("keyB"),
                                   11);
    }

    public void testStrRetrivalFromMapMissingLeadingSlash() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }
View Full Code Here

                createService().getCharacteristic("key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }

    public void testStrRetrivalFromMap() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("/key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }
View Full Code Here

                createService().getCharacteristic("/key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }

    public void testStrRetrivalFromMapMissingTrailingSlash() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }
View Full Code Here

                createService().getCharacteristic("key1/keyA");
        assertImmutableStringValue(value, "a-string");
    }

    public void testListRetrieval() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("key2");

        ImmutableListValue list = assertImmutableList(value, 2);

        // check that this items at index 0 is a boolean of value true
View Full Code Here

        assertImmutableBooleanValue(
                (ImmutableMetaDataValue)list.getContentsAsList().get(1), false);
    }

    public void testBooleanRetrievalFromList() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("/key2[0]");
        assertImmutableBooleanValue(value, true);
    }
View Full Code Here

                createService().getCharacteristic("/key2[0]");
        assertImmutableBooleanValue(value, true);
    }

    public void testAnotherBooleanRetrievalFromList() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("/key2[1]");
        assertImmutableBooleanValue(value, false);
    }
View Full Code Here

                createService().getCharacteristic("/key2[1]");
        assertImmutableBooleanValue(value, false);
    }

    public void testSetRetrieval() throws Exception {
        ImmutableMetaDataValue value =
                createService().getCharacteristic("/key3");

        ImmutableSetValue set = assertImmutableSet(value, 3);

        Collection collection = set.getContentsAsCollection();
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.value.immutable.ImmutableMetaDataValue

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.