Package org.auraframework.impl

Examples of org.auraframework.impl.DefinitionAccessImpl


public class DefinitionParserAdapterImpl implements DefinitionParserAdapter {

    @Override
    public DefinitionAccess parseAccess(String namespace, String access) throws InvalidAccessValueException {
        return new DefinitionAccessImpl(namespace, access);
    }
View Full Code Here


                    Location location) {
            RegisterEventDefImpl.Builder builder = new RegisterEventDefImpl.Builder();
            builder.setDescriptor(eventDescriptor == null ? getEventDefDescriptor()
                            : eventDescriptor);
            builder.setAttName("fakey");
            DefinitionAccessImpl access;
      try {
        access = new DefinitionAccessImpl(null, isGlobal ? "global" : "public");
      } catch (InvalidAccessValueException e) {
        access = null;
      }
      builder.setAccess(access);
            builder.setLocation((location == null) ? getLocation() : location);
View Full Code Here

                    Location location) {

            RegisterEventDefImpl.Builder builder = new RegisterEventDefImpl.Builder();
            builder.setDescriptor(eventDescriptor);
            builder.setAttName("fakey");
            DefinitionAccessImpl access;
      try {
        access = new DefinitionAccessImpl(null, isGlobal ? "global" : "public");
      } catch (InvalidAccessValueException e) {
        access = null;
      }
            builder.setAccess(access);
            builder.setLocation((location == null) ? getLocation() : location);
View Full Code Here

        Visibility actual = buildDefinition().getVisibility();
        assertEquals(visibility, actual);
    }
   
    public void testAccessGlobal() throws Exception {
      this.access = new DefinitionAccessImpl(null, "global");
      DefinitionAccess actual = buildDefinition().getAccess();
      assertTrue(actual.isGlobal());
    }
View Full Code Here

      DefinitionAccess actual = buildDefinition().getAccess();
      assertTrue(actual.isGlobal());
    }

    public void testAccessGlobalDynamic() throws Exception {
      this.access = new DefinitionAccessImpl(null, "org.auraframework.test.TestAccessMethods.allowGlobal");
      DefinitionAccess actual = buildDefinition().getAccess();
      assertTrue(actual.isGlobal());
    }
View Full Code Here

        Map<String, RegisterEventDef> eventDefs = new HashMap<>();

        RegisterEventDefImpl.Builder regBuilder = new RegisterEventDefImpl.Builder();
        regBuilder.setDescriptor(DefDescriptorImpl.getInstance("test:anevent", EventDef.class));
        regBuilder.setAttName("fakey");
        regBuilder.setAccess(new DefinitionAccessImpl(null, "public"));

        eventDefs.put("fakey", regBuilder.build());
        ComponentDefImpl.Builder builder = createAbstractBuilder();
        builder.events = eventDefs;
        ComponentDef cmp = builder.build();
View Full Code Here

TOP

Related Classes of org.auraframework.impl.DefinitionAccessImpl

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.