Tabnine Logo
XmlSchemaCollection.getExtReg
Code IndexAdd Tabnine to your IDE (free)

How to use
getExtReg
method
in
org.apache.ws.commons.schema.XmlSchemaCollection

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaCollection.getExtReg (Showing top 19 results out of 315)

origin: org.apache.cxf/cxf-api

public ExtensionRegistry getExtReg() {
  return schemaCollection.getExtReg();
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public ExtensionRegistry getExtReg() {
  return schemaCollection.getExtReg();
}
origin: apache/cxf

public ExtensionRegistry getExtReg() {
  return schemaCollection.getExtReg();
}
origin: org.apache.cxf/cxf-core

public ExtensionRegistry getExtReg() {
  return schemaCollection.getExtReg();
}
origin: org.apache.cxf/cxf-common-utilities

public ExtensionRegistry getExtReg() {
  return schemaCollection.getExtReg();
}
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

/**
 * Schema builder constructor
 * @param collection
 */
SchemaBuilder(XmlSchemaCollection collection, TargetNamespaceValidator validator) {
  this.collection = collection;
  this.validator = validator;
  if (collection.getExtReg()!=null){
    this.extReg = collection.getExtReg();
  }
  schema = new XmlSchema(collection);
}
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Schema builder constructor
 * @param collection
 */
SchemaBuilder(XmlSchemaCollection collection,
    TargetNamespaceValidator validator) {
  this.collection = collection;
  this.validator = validator;
  if (collection.getExtReg() != null) {
    this.extReg = collection.getExtReg();
  }
  schema = new XmlSchema();
}
 
origin: org.apache.ws.schema/XmlSchema

/**
 * Schema builder constructor
 * @param collection
 */
SchemaBuilder(XmlSchemaCollection collection,
    TargetNamespaceValidator validator) {
  this.collection = collection;
  this.validator = validator;
  if (collection.getExtReg() != null) {
    this.extReg = collection.getExtReg();
  }
  schema = new XmlSchema();
}
 
origin: org.springframework.ws/org.springframework.xml

public Source getSource() {
  // try to use the the package-friendly XmlSchemaSerializer first, fall back to slower stream-based version
  try {
    XmlSchemaSerializer serializer = (XmlSchemaSerializer) BeanUtils.instantiateClass(XmlSchemaSerializer.class)
        ;
    if (collection != null) {
      serializer.setExtReg(collection.getExtReg());
    }
    Document[] serializedSchemas = serializer.serializeSchema(schema, false);
    return new DOMSource(serializedSchemas[0]);
  }
  catch (BeanInstantiationException ex) {
    // ignore
  }
  catch (XmlSchemaSerializer.XmlSchemaSerializerException ex) {
    // ignore
  }
  ByteArrayOutputStream bos = new ByteArrayOutputStream();
  schema.write(bos);
  ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
  return new StreamSource(bis);
}
origin: spring-projects/spring-ws

@Override
public Source getSource() {
  // try to use the package-friendly XmlSchemaSerializer first, fall back to slower stream-based version
  try {
    XmlSchemaSerializer serializer = BeanUtils.instantiateClass(XmlSchemaSerializer.class);
    if (collection != null) {
      serializer.setExtReg(collection.getExtReg());
    }
    Document[] serializedSchemas = serializer.serializeSchema(schema, false);
    return new DOMSource(serializedSchemas[0]);
  }
  catch (BeanInstantiationException ex) {
    // ignore
  }
  catch (XmlSchemaSerializer.XmlSchemaSerializerException ex) {
    // ignore
  }
  ByteArrayOutputStream bos = new ByteArrayOutputStream();
  try {
    schema.write(bos);
  }
  catch (UnsupportedEncodingException ex) {
    throw new CommonsXsdSchemaException(ex.getMessage(), ex);
  }
  ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
  return new StreamSource(bis);
}
origin: apache/servicemix-bundles

@Override
public Source getSource() {
  // try to use the package-friendly XmlSchemaSerializer first, fall back to slower stream-based version
  try {
    XmlSchemaSerializer serializer = BeanUtils.instantiateClass(XmlSchemaSerializer.class);
    if (collection != null) {
      serializer.setExtReg(collection.getExtReg());
    }
    Document[] serializedSchemas = serializer.serializeSchema(schema, false);
    return new DOMSource(serializedSchemas[0]);
  }
  catch (BeanInstantiationException ex) {
    // ignore
  }
  catch (XmlSchemaSerializer.XmlSchemaSerializerException ex) {
    // ignore
  }
  ByteArrayOutputStream bos = new ByteArrayOutputStream();
  try {
    schema.write(bos);
  }
  catch (UnsupportedEncodingException ex) {
    throw new CommonsXsdSchemaException(ex.getMessage(), ex);
  }
  ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
  return new StreamSource(bis);
}
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Retrieve a DOM tree for this one schema, independent of any included or 
 * related schemas.
 * @return The DOM document.
 * @throws XmlSchemaSerializerException
 */
public Document getSchemaDocument() throws XmlSchemaSerializerException {
  XmlSchemaSerializer xser = new XmlSchemaSerializer();
  xser.setExtReg(this.parent.getExtReg());
  return xser.serializeSchema(this, false)[0];
}

origin: org.apache.ws.schema/XmlSchema

/**
 * Retrieve a DOM tree for this one schema, independent of any included or 
 * related schemas.
 * @return The DOM document.
 * @throws XmlSchemaSerializerException
 */
public Document getSchemaDocument() throws XmlSchemaSerializerException {
  XmlSchemaSerializer xser = new XmlSchemaSerializer();
  xser.setExtReg(this.parent.getExtReg());
  return xser.serializeSchema(this, false)[0];
}

origin: org.apache.ws.schema/XmlSchema

xser.setExtReg(this.parent.getExtReg());
Document[] serializedSchemas = xser.serializeSchema(schema, false);
TransformerFactory trFac = TransformerFactory.newInstance();
origin: org.apache.ws.commons.schema/XmlSchema

xser.setExtReg(this.parent.getExtReg());
Document[] serializedSchemas = xser.serializeSchema(schema, false);
TransformerFactory trFac = TransformerFactory.newInstance();
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

xser.setExtReg(this.parent.getExtReg());
Document[] serializedSchemas = xser.serializeSchema(schema, false);
TransformerFactory trFac = TransformerFactory.newInstance();
origin: org.apache.ws.commons.schema/XmlSchema

public Document[] getAllSchemas() {
  try {
    XmlSchemaSerializer xser = new XmlSchemaSerializer();
    xser.setExtReg(this.parent.getExtReg());
    return xser.serializeSchema(this, true);
  } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) {
    throw new XmlSchemaException(e.getMessage());
  }
}
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

public Document[] getAllSchemas() {
  try {
    XmlSchemaSerializer xser = new XmlSchemaSerializer();
    xser.setExtReg(this.parent.getExtReg());
    return xser.serializeSchema(this, true);
  } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) {
    throw new XmlSchemaException(e.getMessage());
  }
}
origin: org.apache.ws.schema/XmlSchema

public Document[] getAllSchemas() {
  try {
    XmlSchemaSerializer xser = new XmlSchemaSerializer();
    xser.setExtReg(this.parent.getExtReg());
    return xser.serializeSchema(this, true);
  } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) {
    throw new XmlSchemaException(e.getMessage());
  }
}
org.apache.ws.commons.schemaXmlSchemaCollectiongetExtReg

Popular methods of XmlSchemaCollection

  • read
  • <init>
    Creates new XmlSchemaCollection
  • setSchemaResolver
    Register a custom URI resolver
  • setBaseUri
    Set the base URI. This is used when schemas need to be loaded from relative locations
  • getTypeByQName
    Retrieve a global type from the schema collection.
  • getXmlSchemas
    Returns an array of all the XmlSchemas in this collection.
  • getElementByQName
    Retrieve a global element from the schema collection.
  • getNamespaceContext
    Retrieve the namespace context.
  • getXmlSchema
    Retrieve a set containing the XmlSchema instances with the given system ID. In general, this will re
  • init
    This section should comply to the XMLSchema specification; see http://www.w3.org/TR/2004/PER-xmlsch
  • setNamespaceContext
    Set the namespace context for this collection, which controls the assignment of namespace prefixes t
  • getAttributeByQName
    Find a global attribute by QName in this collection of schemas.
  • setNamespaceContext,
  • getAttributeByQName,
  • getSchemaResolver,
  • setExtReg,
  • addSchema,
  • addSimpleType,
  • addUnresolvedType,
  • check,
  • containsSchema

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • String (java.lang)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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