Package org.apache.isis.applib

Examples of org.apache.isis.applib.Identifier


        manager.addLine("C:cls");
        manager.addLine("Help about class");
        manager.addLine("line 2");
        manager.addLine("line 3");

        final Identifier identifier = Identifier.classIdentifier("cls");
        final String s = manager.getHelpText(identifier);
        assertEquals("Help about class\nline 2\nline 3\n", s);
    }
View Full Code Here


    public void testFieldWithNoEntry() {
        manager.addLine("C:cls");
        manager.addLine("Help about class");

        final Identifier identifier = Identifier.propertyOrCollectionIdentifier("cls", "fld2");
        final String s = manager.getHelpText(identifier);
        assertEquals("", s);
    }
View Full Code Here

        final String s = manager.getHelpText(identifier);
        assertEquals("", s);
    }

    public void testMessageForFileError() {
        final Identifier identifier = Identifier.propertyOrCollectionIdentifier("cls", "fld2");
        final HelpManagerUsingFiles manager = new HelpManagerUsingFiles(new IsisConfigurationDefault()) {
            @Override
            protected BufferedReader getReader() throws FileNotFoundException {
                throw new FileNotFoundException("not found");
            }
View Full Code Here

        manager.addLine("M:fld1");
        manager.addLine("Help about field");
        manager.addLine("M:fld2");
        manager.addLine("Help about second field");

        final Identifier identifier = Identifier.propertyOrCollectionIdentifier("cls", "fld2");
        final String s = manager.getHelpText(identifier);
        assertEquals("Help about second field\n", s);
    }
View Full Code Here

        manager.addLine("C:cls");
        manager.addLine("");
        manager.addLine("");
        manager.addLine("Help about class");

        final Identifier identifier = Identifier.classIdentifier("cls");
        final String s = manager.getHelpText(identifier);
        assertEquals("\n\nHelp about class\n", s);

    }
View Full Code Here

    public void testSkipComments() {
        manager.addLine("C:cls");
        manager.addLine("# comment");
        manager.addLine("Help about class");

        final Identifier identifier = Identifier.classIdentifier("cls");
        final String s = manager.getHelpText(identifier);
        assertEquals("Help about class\n", s);

    }
View Full Code Here

            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final Identifier actionIdentifier = action.getIdentifier();
            final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();
           
            final Command command = currentInvocation.getCommand();
            final String targetClass = command.getTargetClass();
            final String targetAction = command.getTargetAction();
            final Bookmark target = command.getTarget();
View Full Code Here

        // copy over facets from contributed to own.
        FacetUtil.copyFacets(serviceAction.getFacetedMethod(), facetHolder);

        // calculate the identifier
        final Identifier contributorIdentifier = serviceAction.getFacetedMethod().getIdentifier();
        final String memberName = contributorIdentifier.getMemberName();
        List<String> memberParameterNames = contributorIdentifier.getMemberParameterNames();
        identifier = Identifier.actionIdentifier(getOnType().getCorrespondingClass().getName(), memberName, memberParameterNames);
    }
View Full Code Here

                    }
                }
            } else {
                final Object source = ObjectAdapter.Util.unwrap(targetAdapter);
                final Object[] arguments = ObjectAdapter.Util.unwrap(argumentAdapters);
                final Identifier identifier = identified.getIdentifier();
                event = newActionInteractionEvent(eventType, identifier, source, arguments);
            }

            if(identified instanceof ObjectAction) {
                // should always be the case...
View Full Code Here

                event = existingEvent;
                setEventOldValue(event, oldValue);
                setEventNewValue(event, newValue);
            } else {
                final Object source = ObjectAdapter.Util.unwrap(targetAdapter);
                final Identifier identifier = identified.getIdentifier();
                event = newPropertyInteractionEvent(eventType, identifier, source, oldValue, newValue);
            }
            event.setPhase(phase);
            getEventBusService().post(event);
            return event;
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.Identifier

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.