Examples of Predicate


Examples of org.apache.commons.collections.Predicate

     */
    protected boolean handleIsChild()
    {
        return CollectionUtils.find(
            this.getAssociationEnds(),
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    return ((AssociationEndFacade)object).getOtherEnd().isComposition();
                }
View Full Code Here

Examples of org.apache.commons.collections.Predicate

        final boolean withIdentifiers)
    {
        final Collection attributes = this.getAttributes(follow);
        CollectionUtils.filter(
            attributes,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    boolean valid = true;
                    if (!withIdentifiers && object instanceof EntityAttribute)
View Full Code Here

Examples of org.apache.commons.collections.Predicate

        // only filter when we don't want identifiers
        if (!withIdentifiers)
        {
            CollectionUtils.filter(
                properties,
                new Predicate()
                {
                    public boolean evaluate(final Object object)
                    {
                        return !(object instanceof EntityAttribute) || !((EntityAttribute)object).isIdentifier();
                    }
View Full Code Here

Examples of org.apache.commons.collections.Predicate

        // only filter when we don't want identifiers
        if (!withIdentifiers)
        {
            CollectionUtils.filter(
                attributes,
                new Predicate()
                {
                    public boolean evaluate(final Object object)
                    {
                        final AttributeFacade attribute = (AttributeFacade)object;
                        return
View Full Code Here

Examples of org.apache.commons.collections.Predicate

        final Set properties = new LinkedHashSet(this.getProperties(
                    follow,
                    withIdentifiers));
        CollectionUtils.filter(
            properties,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    boolean valid = false;
                    if (object instanceof AttributeFacade)
View Full Code Here

Examples of org.apache.commons.collections.Predicate

    public List handleGetAssociationEnds()
    {
        final List associationEnds = (List)this.shieldedElements(super.handleGetAssociationEnds());
        CollectionUtils.filter(
            associationEnds,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    return ((AssociationEndFacade)object).getOtherEnd().getType() instanceof Entity;
                }
View Full Code Here

Examples of org.apache.commons.collections.Predicate

     */
    private EntityAssociationEnd getForeignIdentifierEnd()
    {
        return (EntityAssociationEnd)CollectionUtils.find(
            this.getAssociationEnds(),
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                    boolean valid = false;
                    if (object != null && EntityAssociationEnd.class.isAssignableFrom(object.getClass()))
View Full Code Here

Examples of org.apache.commons.collections.Predicate

     */
    protected ParameterFacade handleFindParameter(final String name)
    {
        return (ParameterFacade)CollectionUtils.find(
            this.getParameters(),
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    final ParameterFacade parameter = (ParameterFacade)object;
                    return StringUtils.trimToEmpty(parameter.getName()).equals(name);
View Full Code Here

Examples of org.apache.commons.collections.Predicate

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

Examples of org.apache.commons.collections.Predicate

    /**
     * @see org.andromda.metafacades.uml.StateMachineFacade#getStates()
     */
    protected java.util.Collection handleGetStates()
    {
        final Predicate filter =
            new Predicate()
            {
                public boolean evaluate(Object object)
                {
                    return object instanceof State;
                }
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.