Codota Logo
org.apache.ws.commons.schema
Code IndexAdd Codota to your IDE (free)

How to use org.apache.ws.commons.schema

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

private static XmlSchemaComplexType getRowNameBasedSchemaComplexType(
    XmlSchemaComplexType wrapperSchemaComplexType) {
  return (((XmlSchemaComplexType) ((XmlSchemaElement) ((XmlSchemaSequence) wrapperSchemaComplexType
      .getParticle()).getItems().getItem(0)).getSchemaType()));
}
 
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.schema/XmlSchema

/**
 * Creates new XmlSchemaElement
 */
public XmlSchemaElement() {
  constraints = new XmlSchemaObjectCollection();
  isAbstract = false;
  isNillable = false;
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
}
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

private static String getResultRowName(XmlSchemaComplexType wrapperSchemaComplexType) {
  return ((XmlSchemaElement) ((XmlSchemaSequence) wrapperSchemaComplexType
      .getParticle()).getItems().getItem(0)).getName();
}
 
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: apache/cxf

public void setSchema(XmlSchema schema) {
  this.schema = schema;
  isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
  isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
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: apache/cxf

public static boolean isAttributeNameQualified(XmlSchemaAttribute attribute, XmlSchema schema) {
  if (attribute.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (attribute.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (attribute.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.ws.commons.schema/XmlSchema

private void addSimpleType(XmlSchema schema,String typeName){
  XmlSchemaSimpleType type;
  type = new XmlSchemaSimpleType(schema);
  type.setName(typeName);
  schema.addType(type);
}
public XmlSchema read(Reader r, ValidationEventHandler veh) {
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Creates new XmlSchemaAttribute
 */
public XmlSchemaAttribute() {
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  use = new XmlSchemaUse(Constants.BlockConstants.NONE);
}
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

/**
 * Creates new XmlSchemaRedefine
 */
public XmlSchemaRedefine() {
  items = new XmlSchemaObjectCollection();
  schemaTypes = new XmlSchemaObjectTable();
  groups = new XmlSchemaObjectTable();
  attributeGroups = new XmlSchemaObjectTable();
}
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Creates new XmlSchemaComplexType
 */
public XmlSchemaComplexType(XmlSchema schema) {
  super(schema);
  attributes = new XmlSchemaObjectCollection();
  block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  isAbstract = false;
  isMixed = false;
}
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.cxf/cxf-core

public void setSchema(XmlSchema schema) {
  this.schema = schema;
  isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
  isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.cxf/cxf-api

public static boolean isAttributeNameQualified(XmlSchemaAttribute attribute, XmlSchema schema) {
  if (attribute.isRef()) {
    throw new RuntimeException("isElementNameQualified on element with ref=");
  }
  if (attribute.getForm().equals(XmlSchemaForm.QUALIFIED)) {
    return true;
  }
  if (attribute.getForm().equals(XmlSchemaForm.UNQUALIFIED)) {
    return false;
  }
  return schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Creates new XmlSchemaElement
 */
public XmlSchemaElement() {
  constraints = new XmlSchemaObjectCollection();
  isAbstract = false;
  isNillable = false;
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
}
origin: org.apache.ws.commons.schema/XmlSchema

/**
 * Creates new XmlSchemaRedefine
 */
public XmlSchemaRedefine() {
  items = new XmlSchemaObjectCollection();
  schemaTypes = new XmlSchemaObjectTable();
  groups = new XmlSchemaObjectTable();
  attributeGroups = new XmlSchemaObjectTable();
}
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());
  }
}
origin: org.apache.cxf/cxf-api

public void setSchema(XmlSchema schema) {
  this.schema = schema;
  isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
  isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

/**
 * Creates new XmlSchemaElement
 */
public XmlSchemaElement() {
  constraints = new XmlSchemaObjectCollection();
  isAbstract = false;
  isNillable = false;
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
}
org.apache.ws.commons.schema

Most used classes

  • XmlSchema
  • XmlSchemaCollection
  • XmlSchemaElement
  • XmlSchemaComplexType
  • XmlSchemaSequence
  • XmlSchemaImport,
  • XmlSchemaObjectCollection,
  • XmlSchemaSimpleType,
  • NamespaceMap,
  • XmlSchemaComplexContentExtension,
  • XmlSchemaSimpleTypeRestriction,
  • XmlSchemaRef,
  • XmlSchemaExternal,
  • XmlSchemaAll,
  • XmlSchemaAttribute,
  • XmlSchemaInclude,
  • XmlSchemaChoice,
  • XmlSchemaEnumerationFacet,
  • XmlSchemaParticle
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