com.sun.tools.internal.ws.wsdl.document.Fault Java Examples

The following examples show how to use com.sun.tools.internal.ws.wsdl.document.Fault. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MemberSubmissionAddressingExtensionHandler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #2
Source File: W3CAddressingMetadataExtensionHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #3
Source File: MemberSubmissionAddressingExtensionHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #4
Source File: W3CAddressingMetadataExtensionHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #5
Source File: MemberSubmissionAddressingExtensionHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #6
Source File: W3CAddressingMetadataExtensionHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #7
Source File: MemberSubmissionAddressingExtensionHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #8
Source File: W3CAddressingMetadataExtensionHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #9
Source File: MemberSubmissionAddressingExtensionHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #10
Source File: W3CAddressingMetadataExtensionHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #11
Source File: MemberSubmissionAddressingExtensionHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #12
Source File: W3CAddressingMetadataExtensionHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #13
Source File: MemberSubmissionAddressingExtensionHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #14
Source File: W3CAddressingMetadataExtensionHandler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #15
Source File: MemberSubmissionAddressingExtensionHandler.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
Example #16
Source File: W3CAddressingMetadataExtensionHandler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME);
    if (actionValue == null || actionValue.equals("")) {
        errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
        return false; // keep compiler happy
    }
    ((Fault)parent).setAction(actionValue);
    return true;
}
 
Example #17
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #18
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #19
Source File: W3CAddressingJavaGeneratorExtension.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #20
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #21
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #22
Source File: W3CAddressingJavaGeneratorExtension.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #23
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #24
Source File: W3CAddressingJavaGeneratorExtension.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}