Package org.apache.woden.types

Examples of org.apache.woden.types.NCName


     * @param qname the QName used to lookup the namespace and copy.
     * @return a QName with the new prefix, but same namespace and localpart.
     */
    public QName prefixQNameNamespace(QName qname) {
        //Get prefix for the fault QName in the XPointer.
        NCName prefix = getXmlNamespacePrefix(qname);
        return new QName(qname.getNamespaceURI(), qname.getLocalPart(), prefix.toString());
    }
View Full Code Here


     */
    public BindingPart(Binding binding) {
        if (binding == null) {
            throw new IllegalArgumentException();
        }
        this.binding = new NCName(binding.getName().getLocalPart());
    }
View Full Code Here

  {
  List messageLabels = new ArrayList();
  int numMessageReferences = messageReferences.length;
  for(int i = 0; i < numMessageReferences; i++)
  {
    NCName messageLabel = messageReferences[i].getMessageLabel();
      if(messageLabel == null)
          continue;
    if(messageLabels.contains(messageLabel))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "InterfaceMessageReference-1029", new Object[]{messageLabel}, ErrorReporter.SEVERITY_ERROR);
View Full Code Here

 
  int numFaultReferences = faultReferences.length;
  for(int i = 0; i < numFaultReferences; i++)
  {
    InterfaceFault fault = faultReferences[i].getInterfaceFault();
    NCName messageLabel = faultReferences[i].getMessageLabel();
      if(fault == null || messageLabel == null)
      continue;
    List messageLabels = (List)identifiers.get(fault);
    if(messageLabels != null && messageLabels.contains(messageLabel))
    {
View Full Code Here

      InterfaceImpl interfac = (InterfaceImpl)descEl.addInterfaceElement();
      interfac.setName(name1);
      InterfaceImpl interfac2 = (InterfaceImpl)descEl.addInterfaceElement();
      interfac2.setName(name2);
      InterfaceImpl interfac3 = (InterfaceImpl)descEl.addInterfaceElement();
      interfac3.setName(new NCName("name1"));
         
      Interface[] interfaces = new Interface[]{interfac, interfac2, interfac3};
   
    if(val.testAssertionInterface1010(interfaces, reporter))
    {
View Full Code Here

   * true if interface is specified when a binding operation
   * or fault is specified, false otherwise.
   */
  public void testTestAssertionBinding1044()
  {
    NCName name1 = new NCName("name1");
    NCName name2 = new NCName("name2");
    WSDLFactory factory = null;
    try {
        factory = WSDLFactory.newInstance();
    } catch (WSDLException e) {
        fail("Can't instantiate the WSDLFactory object.");
View Full Code Here

      BindingElement binding = descEl.addBindingElement();
    binding.setName(name1);
      BindingElement binding2 = descEl.addBindingElement();
      binding2.setName(name2);
      BindingElement binding3 = descEl.addBindingElement();
    binding3.setName(new NCName("name1"));
   
    Binding[] bindings = descEl.toComponent().getBindings();
   
    if(val.testAssertionBinding1049(bindings, reporter))
    {
View Full Code Here

      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
      ServiceImpl service3 = (ServiceImpl)descEl.addServiceElement();
      service3.setName(new NCName("name1"));
   
    Service[] services = new Service[]{service, service2, service3};
   
    if(val.testAssertionService1060(services, reporter))
    {
View Full Code Here

  /*
   * Test that the (Mandatory) message label attribute ("messageLabel") can be successfully set and retrieved
   */
  public void testGetMessageLabel()
  {
    NCName faultRefNCName = new NCName("faultRefName");
    fFaultReferenceElement.setMessageLabel(faultRefNCName);
    assertEquals("The retrieved Fault Reference name is not that which was set",
        faultRefNCName, fFaultReferenceComp.getMessageLabel());
  }
View Full Code Here

        InterfaceElement interfaceElement = desc.addInterfaceElement();
    InterfaceOperationElement interfaceOperationElement = interfaceElement.addInterfaceOperationElement();

    // Add an InterfaceFault to the InterfaceElement
    InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
    faultElement.setName(new NCName("Fault1"));
   
    // create the InterfaceFaultReference to test
    InterfaceFaultReferenceElement faultReference = interfaceOperationElement.addInterfaceFaultReferenceElement();
    faultReference.setRef(new QName("Fault1"));
   
View Full Code Here

TOP

Related Classes of org.apache.woden.types.NCName

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.