Examples of Predicate


Examples of org.apache.commons.collections.Predicate

    /**
     * @see org.andromda.metafacades.uml.StateMachineFacade#getInitialStates()
     */
    protected java.util.Collection handleGetInitialStates()
    {
        final Predicate filter =
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    return (object instanceof Pseudostate) &&
                    (PseudostateKindEnum.PK_INITIAL.equals(((Pseudostate)object).getKind()));
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    /**
     * @see org.andromda.metafacades.uml.StateMachineFacade#getPseudostates()
     */
    protected java.util.Collection handleGetPseudostates()
    {
        final Predicate filter =
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    return (object instanceof Pseudostate);
                }
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    protected java.util.Collection handleGetLiterals()
    {
        Collection literals = this.getAttributes();
        CollectionUtils.filter(
            literals,
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    boolean isLiteral = true;
                    final AttributeFacade attribute = (AttributeFacade)object;
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    protected java.util.Collection handleGetMemberVariables()
    {
        Collection variables = super.getAttributes();
        CollectionUtils.filter(
            variables,
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    boolean isMember = false;
                    final AttributeFacade attribute = (AttributeFacade)object;
View Full Code Here

Examples of org.apache.commons.collections.Predicate

            roles.addAll(((Service)this.getOwner()).getRoles());
        }
        final Collection operationRoles = new ArrayList(this.getTargetDependencies());
        CollectionUtils.filter(
            operationRoles,
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    DependencyFacade dependency = (DependencyFacade)object;
                    return dependency != null && dependency.getSourceElement() != null &&
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    public Object handleGetIncomingDestination()
    {
        final Collection dependencies = this.getTargetDependencies();
        final DependencyFacade dependency = (DependencyFacade)
            CollectionUtils.find(dependencies,
                new Predicate() {
   
                    public boolean evaluate(Object object)
                    {
                        return ((DependencyFacade)object).getSourceElement() instanceof Destination;
                    }});
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    public Object handleGetOutgoingDestination()
    {
        final Collection dependencies = this.getSourceDependencies();
        final DependencyFacade dependency = (DependencyFacade)
        CollectionUtils.find(dependencies,
            new Predicate() {

                public boolean evaluate(Object object)
                {
                    return ((DependencyFacade)object).getTargetElement() instanceof Destination;
                }});
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    protected Collection handleGetRoles()
    {
        final Collection roles = new ArrayList(this.getTargetDependencies());
        CollectionUtils.filter(
            roles,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    DependencyFacade dependency = (DependencyFacade)object;
                    return dependency != null && dependency.getSourceElement() instanceof Role;
View Full Code Here

Examples of org.apache.commons.collections.Predicate

     * @see org.andromda.metafacades.uml.Service#getRoles()
     */
    protected Collection handleGetRoles()
    {
        final Collection roles = new ArrayList(this.getTargetDependencies());
        CollectionUtils.filter(roles, new Predicate()
        {
            public boolean evaluate(final Object object)
            {
                DependencyFacade dependency = (DependencyFacade)object;
                return dependency != null && dependency.getSourceElement() instanceof Role;
View Full Code Here

Examples of org.apache.commons.collections.Predicate

            allSourceDependencies.addAll(parent.getSourceDependencies());
        }
        boolean present =
            CollectionUtils.find(
                allSourceDependencies,
                new Predicate()
                {
                    public boolean evaluate(Object object)
                    {
                        DependencyFacade dependency = (DependencyFacade)object;
                        Object target = dependency.getTargetElement();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.