Tabnine Logo
XmlSchemaElement.isRef
Code IndexAdd Tabnine to your IDE (free)

How to use
isRef
method
in
org.apache.ws.commons.schema.XmlSchemaElement

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaElement.isRef (Showing top 20 results out of 315)

origin: org.apache.cxf/cxf-api

public static XmlSchemaElement getReferredElement(XmlSchemaElement element,
                         SchemaCollection xmlSchemaCollection) {
  if (element.isRef()) {
    /*
     * Calling getTarget works if everything is in the collection already.
     */
    XmlSchemaElement refElement = element.getRef().getTarget();
    if (refElement == null) {
      throw new RuntimeException("Dangling reference");
    }
    return refElement;
  }
  return null;
}
origin: org.apache.cxf/cxf-common-utilities

public static XmlSchemaElement getReferredElement(XmlSchemaElement element,
                         SchemaCollection xmlSchemaCollection) {
  if (element.isRef()) {
    /*
     * Calling getTarget works if everything is in the collection already.
     */
    XmlSchemaElement refElement = element.getRef().getTarget();
    if (refElement == null) {
      throw new RuntimeException("Dangling reference");
    }
    return refElement;
  }
  return null;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public static XmlSchemaElement getReferredElement(XmlSchemaElement element,
                         SchemaCollection xmlSchemaCollection) {
  if (element.isRef()) {
    /*
     * Calling getTarget works if everything is in the collection already.
     */
    XmlSchemaElement refElement = element.getRef().getTarget();
    if (refElement == null) {
      throw new RuntimeException("Dangling reference");
    }
    return refElement;
  }
  return null;
}
origin: apache/cxf

private boolean getElementQualification(XmlSchemaElement element, String uri) {
  QName schemaName = element.getQName();
  if (element.isRef()) {
    schemaName = element.getRef().getTargetQName();
  }
  if (schemaName.getNamespaceURI().isEmpty()) {
    schemaName = new QName(uri, schemaName.getLocalPart());
  }
  boolean qualified = false;
  if (element.getForm() == XmlSchemaForm.QUALIFIED) {
    qualified = true;
  } else {
    qualified = WSDLUtils.isElementFormQualified(xmlSchemaList, schemaName);
  }
  return qualified;
}
origin: org.apache.cxf/cxf-common-utilities

/**
 * Wrapper around XmlSchemaElement.setName that checks for inconsistency with
 * refName.
 * @param element
 * @param name
 */
public static void setElementName(XmlSchemaElement element, String name) {
  if (name != null
    && element.isRef()
    && !element.getRef().getTargetQName().getLocalPart().equals(name)
    && (element.getQName() == null || element.getQName().getLocalPart().equals(name))) {
    LOG.severe("Attempt to set the name of an element with a reference name.");
    throw new
      XmlSchemaInvalidOperation("Attempt to set the name of an element "
                   + "with a reference name.");
  }
  element.setName(name);
}
origin: org.apache.cxf/cxf-api

/**
 * Wrapper around XmlSchemaElement.setName that checks for inconsistency with
 * refName.
 * @param element
 * @param name
 */
public static void setElementName(XmlSchemaElement element, String name) {
  if (name != null
    && element.isRef()
    && !element.getRef().getTargetQName().getLocalPart().equals(name)
    && (element.getQName() == null || element.getQName().getLocalPart().equals(name))) {
    LOG.severe("Attempt to set the name of an element with a reference name.");
    throw new
      XmlSchemaInvalidOperation("Attempt to set the name of an element "
                   + "with a reference name.");
  }
  element.setName(name);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Wrapper around XmlSchemaElement.setName that checks for inconsistency with
 * refName.
 * @param element
 * @param name
 */
public static void setElementName(XmlSchemaElement element, String name) {
  if (name != null
    && element.isRef()
    && !element.getRef().getTargetQName().getLocalPart().equals(name)
    && (element.getQName() == null || element.getQName().getLocalPart().equals(name))) {
    LOG.severe("Attempt to set the name of an element with a reference name.");
    throw new
      XmlSchemaInvalidOperation("Attempt to set the name of an element "
                   + "with a reference name.");
  }
  element.setName(name);
}
origin: org.apache.cxf/cxf-common-utilities

  throw new RuntimeException("isElementQualified on anonymous element.");
if (element.isRef()) {
  throw new RuntimeException("isElementQualified on the 'from' side of ref=.");
origin: org.apache.cxf/cxf-core

  throw new RuntimeException("isElementQualified on anonymous element.");
if (element.isRef()) {
  throw new RuntimeException("isElementQualified on the 'from' side of ref=.");
origin: org.apache.cxf/cxf-api

  throw new RuntimeException("isElementQualified on anonymous element.");
if (element.isRef()) {
  throw new RuntimeException("isElementQualified on the 'from' side of ref=.");
origin: apache/cxf

  throw new RuntimeException("isElementQualified on anonymous element.");
if (element.isRef()) {
  throw new RuntimeException("isElementQualified on the 'from' side of ref=.");
origin: org.apache.cxf/cxf-bundle-jaxrs

  throw new RuntimeException("isElementQualified on anonymous element.");
if (element.isRef()) {
  throw new RuntimeException("isElementQualified on the 'from' side of ref=.");
origin: org.apache.cxf/cxf-core

public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) {
  if (element.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.cxf/cxf-api

public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) {
  if (element.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) {
  if (element.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: apache/cxf

public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) {
  if (element.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.cxf/cxf-common-utilities

public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) {
  if (element.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.cxf/cxf-common-utilities

while (element.getSchemaType() == null && element.isRef()) {
origin: apache/cxf

while (element.getSchemaType() == null && element.isRef()) {
origin: org.apache.cxf/cxf-api

while (element.getSchemaType() == null && element.isRef()) {
org.apache.ws.commons.schemaXmlSchemaElementisRef

Popular methods of XmlSchemaElement

  • getSchemaType
  • getSchemaTypeName
  • getQName
  • getName
  • getRef
  • <init>
  • getMinOccurs
  • isNillable
  • setName
  • setSchemaTypeName
  • getMaxOccurs
  • setSchemaType
  • getMaxOccurs,
  • setSchemaType,
  • setMaxOccurs,
  • setMinOccurs,
  • setNillable,
  • getRefName,
  • getDefaultValue,
  • getWireName,
  • addMetaInfo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now