/** * This constructor creates FaultInfo for a binding fault. * <p/> * If the part of the fault is a type, then the QName is * derived from the element name and the provided namespace * (this namespace SHOULD come from the binding). * <p/> * If the part of the fault is an element, then the QName is * the QName of the element, and the given namespace is ignored. * * @param fault * @param use * @param namespace * @param symbolTable */ public FaultInfo(Fault fault, Use use, String namespace, SymbolTable symbolTable) { this.message = fault.getMessage(); this.xmlType = getFaultType(symbolTable, getFaultPart()); this.use = (use != null) ? use : Use.LITERAL; this.name = fault.getName(); Part part = getFaultPart(); if (part == null) { this.qName = null; } else if (part.getTypeName() != null) { this.qName = new QName(namespace, part.getName()); } else { this.qName = part.getElementName(); } } // ctor
/** * This constructor creates FaultInfo for a binding fault. * <p/> * If the part of the fault is a type, then the QName is * derived from the element name and the provided namespace * (this namespace SHOULD come from the binding). * <p/> * If the part of the fault is an element, then the QName is * the QName of the element, and the given namespace is ignored. * * @param fault * @param use * @param namespace * @param symbolTable */ public FaultInfo(Fault fault, Use use, String namespace, SymbolTable symbolTable) { this.message = fault.getMessage(); this.xmlType = getFaultType(symbolTable, getFaultPart()); this.use = (use != null) ? use : Use.LITERAL; this.name = fault.getName(); Part part = getFaultPart(); if (part == null) { this.qName = null; } else if (part.getTypeName() != null) { this.qName = new QName(namespace, part.getName()); } else { this.qName = part.getElementName(); } } // ctor
/** * This constructor creates FaultInfo for a binding fault. * <p/> * If the part of the fault is a type, then the QName is * derived from the element name and the provided namespace * (this namespace SHOULD come from the binding). * <p/> * If the part of the fault is an element, then the QName is * the QName of the element, and the given namespace is ignored. * * @param fault * @param use * @param namespace * @param symbolTable */ public FaultInfo(Fault fault, Use use, String namespace, SymbolTable symbolTable) { this.message = fault.getMessage(); this.xmlType = getFaultType(symbolTable, getFaultPart()); this.use = (use != null) ? use : Use.LITERAL; this.name = fault.getName(); Part part = getFaultPart(); if (part == null) { this.qName = null; } else if (part.getTypeName() != null) { this.qName = new QName(namespace, part.getName()); } else { this.qName = part.getElementName(); } } // ctor