Package com.volantis.mcs.policies.variants.metadata

Examples of com.volantis.mcs.policies.variants.metadata.MetaDataBuilder


                // appropriate type unless the data is read only or the variant
                // type precludes this.
                Proxy typeProxy = selectedVariant.getPropertyProxy(PolicyModel.VARIANT_TYPE);
                if (metadataProxy == null && !metadataBase.isReadOnly() &&
                        typeProxy.getModelObject() != VariantType.NULL) {
                    MetaDataBuilder metaDataBuilder = getDefaultMetaDataBuilder();
                    metadataBase.setModelObject(metaDataBuilder);

                    // Now that we've set a concrete model object, we should
                    // have a concrete proxy.
                    metadataProxy = (BeanProxy) metadataBase.getConcreteProxy();
View Full Code Here


     * @todo better There must be some way of doing this automatically (and if not, there should be).
     * @return An empty instance of the default metadata type for this policy,
     *         or null if one could not be created
     */
    private MetaDataBuilder getDefaultMetaDataBuilder() {
        MetaDataBuilder metaDataBuilder = null;
        PolicyType policyType = context.getPolicyType();
        if (policyType == VariablePolicyType.TEXT) {
            metaDataBuilder = POLICY_FACTORY.createTextMetaDataBuilder();
        } else if (policyType == VariablePolicyType.CHART) {
            metaDataBuilder = POLICY_FACTORY.createChartMetaDataBuilder();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.metadata.MetaDataBuilder

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.