Codota Logo
XmlSchemaSimpleType.setName
Code IndexAdd Codota to your IDE (free)

How to use
setName
method
in
org.apache.ws.commons.schema.XmlSchemaSimpleType

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaSimpleType.setName (Showing top 16 results out of 315)

  • Common ways to obtain XmlSchemaSimpleType
private void myMethod () {
XmlSchemaSimpleType x =
  • Codota IconXmlSchema schema;new XmlSchemaSimpleType(schema)
  • Codota IconXmlSchemaAttribute xmlSchemaAttribute;xmlSchemaAttribute.getSchemaType()
  • Codota IconXmlSchemaElement xmlSchemaElement;(XmlSchemaSimpleType) xmlSchemaElement.getSchemaType()
  • Smart code suggestions by Codota
}
origin: org.apache.ws.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

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/com.springsource.org.apache.ws.commons.schema

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.axis2/axis2-adb-codegen

/**
 * Completes the schema compilation process by writing the
 * mappers and the classes in a batch if needed
 *
 * @throws SchemaCompilationException
 */
private void finalizeSchemaCompilation() throws SchemaCompilationException {
  //write the extension mapping class
  writer.writeExtensionMapper(
      processedTypeMetaInfoMap.values().toArray(
          new BeanWriterMetaInfoHolder[processedTypeMetaInfoMap.size()]));
  if (options.isWrapClasses()) {
    writer.writeBatch();
  }
  // resets the changed types
  for (XmlSchemaComplexType xmlSchemaComplexType : changedComplexTypeSet) {
    xmlSchemaComplexType.setName(null);
  }
  for (XmlSchemaSimpleType xmlSchemaSimpleType : changedSimpleTypeSet) {
    xmlSchemaSimpleType.setName(null);
  }
  for (XmlSchemaElement xmlSchemaElement : changedElementSet) {
    xmlSchemaElement.setSchemaTypeName(null);
  }
}
origin: apache/axis2-java

/**
 * Completes the schema compilation process by writing the
 * mappers and the classes in a batch if needed
 *
 * @throws SchemaCompilationException
 */
private void finalizeSchemaCompilation() throws SchemaCompilationException {
  //write the extension mapping class
  writer.writeExtensionMapper(
      processedTypeMetaInfoMap.values().toArray(
          new BeanWriterMetaInfoHolder[processedTypeMetaInfoMap.size()]));
  if (options.isWrapClasses()) {
    writer.writeBatch();
  }
  // resets the changed types
  for (XmlSchemaComplexType xmlSchemaComplexType : changedComplexTypeSet) {
    xmlSchemaComplexType.setName(null);
  }
  for (XmlSchemaSimpleType xmlSchemaSimpleType : changedSimpleTypeSet) {
    xmlSchemaSimpleType.setName(null);
  }
  for (XmlSchemaElement xmlSchemaElement : changedElementSet) {
    xmlSchemaElement.setSchemaTypeName(null);
  }
}
origin: apache/cxf

@Override
public void writeSchema(XmlSchema root) {
  XmlSchemaSimpleType simple = new XmlSchemaSimpleType(root, true);
  simple.setName(getSchemaType().getLocalPart());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
  restriction.setBaseTypeName(Constants.XSD_STRING);
  simple.setContent(restriction);
  Object[] constants = getTypeClass().getEnumConstants();
  List<XmlSchemaFacet> facets = restriction.getFacets();
  for (Object constant : constants) {
    XmlSchemaEnumerationFacet f = new XmlSchemaEnumerationFacet();
    f.setValue(getValue(constant));
    facets.add(f);
  }
}
origin: org.apache.cxf/cxf-rt-databinding-aegis

@Override
public void writeSchema(XmlSchema root) {
  XmlSchemaSimpleType simple = new XmlSchemaSimpleType(root, true);
  simple.setName(getSchemaType().getLocalPart());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
  restriction.setBaseTypeName(Constants.XSD_STRING);
  simple.setContent(restriction);
  Object[] constants = getTypeClass().getEnumConstants();
  List<XmlSchemaFacet> facets = restriction.getFacets();
  for (Object constant : constants) {
    XmlSchemaEnumerationFacet f = new XmlSchemaEnumerationFacet();
    f.setValue(getValue(constant));
    facets.add(f);
  }
}
origin: apache/cxf

private XmlSchemaSimpleType duplicateXmlSchemaSimpleType(Scope newScope) {
  XmlSchemaSimpleType oldSimpleType = (XmlSchemaSimpleType) getSchemaType();
  XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, oldSimpleType.isTopLevel());
  simpleType.setContent(oldSimpleType.getContent());
  simpleType.setName(newScope.toString());
  return simpleType;
}
origin: apache/axis2-java

} else {
  fakeQname = qname;
  simpleType.setName(fakeQname.getLocalPart());
  changedSimpleTypeSet.add(simpleType);
  simpleType.setSourceURI(fakeQname.getNamespaceURI());
origin: org.apache.axis2/axis2-adb-codegen

} else {
  fakeQname = qname;
  simpleType.setName(fakeQname.getLocalPart());
  changedSimpleTypeSet.add(simpleType);
  simpleType.setSourceURI(fakeQname.getNamespaceURI());
origin: org.apache.axis2/axis2-kernel

simpleType.setName(enumClass);
XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
restriction.setBaseTypeName(Constants.XSD_STRING);
origin: apache/axis2-java

simpleType.setName(enumClass);
XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
restriction.setBaseTypeName(Constants.XSD_STRING);
origin: apache/cxf

private void visitAnonBoundedString() {
  simpleType.setName(stringScopedName.toString());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
  restriction.setBaseTypeName(Constants.XSD_STRING);
origin: apache/cxf

private void visitBoundedString() {
  simpleType.setName(stringScopedName.toString());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
  restriction.setBaseTypeName(Constants.XSD_STRING);
origin: apache/cxf

fixedRestriction.getFacets().add(fixedTotalDigits);
fixedRestriction.getFacets().add(fixedFractionDigits);
fixedSimpleType.setName(mapper.mapToQName(scopedName));
fixedSimpleType.setContent(fixedRestriction);
origin: apache/cxf

enumSchemaSimpleType.setName(mapper.mapToQName(enumNameScope));
org.apache.ws.commons.schemaXmlSchemaSimpleTypesetName

Popular methods of XmlSchemaSimpleType

  • getContent
  • getQName
  • <init>
  • setContent
  • getName
  • setAnnotation
  • setFinal
  • toString
  • addMetaInfo
  • getBaseSchemaType
  • getDataType
  • getDeriveBy
  • getDataType,
  • getDeriveBy,
  • getMetaInfoMap,
  • getParent,
  • isTopLevel,
  • setSourceURI

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • orElseThrow (Optional)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
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