Codota Logo
XmlSchemaCollection.getExtReg
Code IndexAdd Codota 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)

  • Common ways to obtain XmlSchemaCollection
private void myMethod () {
XmlSchemaCollection x =
  • Codota Iconnew XmlSchemaCollection()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now