congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.ws.commons.schema
Code IndexAdd Tabnine 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)

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
    Contains the definition of a schema. All XML Schema definition language (XSD) elements are children
  • XmlSchemaCollection
    Contains a cache of XML Schema definition language (XSD).
  • XmlSchemaElement
    Class for elements. Represents the World Wide Web Consortium (W3C) element element.
  • XmlSchemaComplexType
    Class for complex types. Defines a complex type that determines the set of attributes and content of
  • XmlSchemaSequence
    Requires the elements in the group to appear in the specified sequence within the containing element
  • XmlSchemaImport,
  • XmlSchemaObjectCollection,
  • XmlSchemaSimpleType,
  • NamespaceMap,
  • XmlSchemaComplexContentExtension,
  • XmlSchemaSimpleTypeRestriction,
  • XmlSchemaRef,
  • XmlSchemaExternal,
  • XmlSchemaAll,
  • XmlSchemaAttribute,
  • XmlSchemaInclude,
  • XmlSchemaChoice,
  • XmlSchemaEnumerationFacet,
  • XmlSchemaParticle
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