Package nexj.core.meta.ui

Examples of nexj.core.meta.ui.AttributeMeta


   {
      // (and (= (@ type type) "Employee") (any (and (= (@ addresses type)
      // "Business") (= (@ addresses city) "Toronto"))))
      Metadata metadata = Repository.getMetadata();
      Metaclass clazz = metadata.getMetaclass("Contact");
      AttributeMeta attr = clazz.getAttributeMeta("isTorontoBasedEmployee");

      assertFalse(attr.isClientCalculable());
   }
View Full Code Here


   public void testAddressReadable()
   {
      // (and (not (null? (@ type))) (@ contact readable))
      Metadata metadata = Repository.getMetadata();
      Metaclass clazz = metadata.getMetaclass("Address");
      AttributeMeta attr = clazz.getAttributeMeta("readable");

      assertTrue(attr.isClientCalculable());
   }
View Full Code Here

   public void testInContactIsCommit()
   {
      // (isCommit)
      Metadata metadata = Repository.getMetadata();
      Metaclass clazz = metadata.getMetaclass("Contact");
      AttributeMeta attr = clazz.getAttributeMeta("isCommit");

      assertFalse(attr.isClientCalculable());
   }
View Full Code Here

   public void testInContactClientLib()
   {
      // (+ (one-plus (@ tax)) (two))
      Metadata metadata = Repository.getMetadata();
      Metaclass clazz = metadata.getMetaclass("Contact");
      AttributeMeta attr = clazz.getAttributeMeta("clientLib");

      assertTrue(attr.isClientCalculable());

      Object[] deps = Pair.toArray(attr.getValueDependencyAssociations());

      assertEquals(1, deps.length);
      assertEquals(Pair.list("tax"), deps[0]);
   }
View Full Code Here

   public void testObjSize()
   {
      // (if (null? (@ data)) 0 (vector-length (@ data data)))
      Metadata metadata = Repository.getMetadata();
      Metaclass clazz = metadata.getMetaclass("Obj");
      AttributeMeta attr = clazz.getAttributeMeta("size");

      assertFalse(attr.isClientCalculable());
   }
View Full Code Here

TOP

Related Classes of nexj.core.meta.ui.AttributeMeta

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.