Tabnine Logo
XmlSchemaSimpleType.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaSimpleType.<init> (Showing top 20 results out of 315)

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.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: 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: org.apache.axis2/axis2-kernel

XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(xmlSchema, false);
simpleType.setName(enumClass);
XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
origin: apache/axis2-java

XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(xmlSchema, false);
simpleType.setName(enumClass);
XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
origin: raml-org/raml-java-parser

@Nonnull
protected XmlSchemaType createNumberSchemaType(NumberResolvedType numberTypeDefinition, QName baseType)
{
  final XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, false);
  final XmlSchemaSimpleTypeRestriction content = new XmlSchemaSimpleTypeRestriction();
  content.setBaseTypeName(baseType);
  if (numberTypeDefinition.getMinimum() != null)
  {
    final XmlSchemaMinInclusiveFacet minLength = new XmlSchemaMinInclusiveFacet();
    minLength.setValue(numberTypeDefinition.getMinimum());
    content.getFacets().add(minLength);
  }
  if (numberTypeDefinition.getMaximum() != null)
  {
    final XmlSchemaMaxInclusiveFacet maxLength = new XmlSchemaMaxInclusiveFacet();
    maxLength.setValue(numberTypeDefinition.getMaximum());
    content.getFacets().add(maxLength);
  }
  simpleType.setContent(content);
  return simpleType;
}
origin: org.raml/raml-parser-2

@Nonnull
protected XmlSchemaType createNumberSchemaType(NumberResolvedType numberTypeDefinition, QName baseType)
{
  final XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, false);
  final XmlSchemaSimpleTypeRestriction content = new XmlSchemaSimpleTypeRestriction();
  content.setBaseTypeName(baseType);
  if (numberTypeDefinition.getMinimum() != null)
  {
    final XmlSchemaMinInclusiveFacet minLength = new XmlSchemaMinInclusiveFacet();
    minLength.setValue(numberTypeDefinition.getMinimum());
    content.getFacets().add(minLength);
  }
  if (numberTypeDefinition.getMaximum() != null)
  {
    final XmlSchemaMaxInclusiveFacet maxLength = new XmlSchemaMaxInclusiveFacet();
    maxLength.setValue(numberTypeDefinition.getMaximum());
    content.getFacets().add(maxLength);
  }
  simpleType.setContent(content);
  return simpleType;
}
origin: apache/cxf

  wsaSchema = new XmlSchema(ReferenceConstants.WSADDRESSING_NAMESPACE, schemas);
XmlSchemaType objectType = new XmlSchemaSimpleType(wsaSchema, true);
objectType.setName(ReferenceConstants.WSADDRESSING_LOCAL_NAME);
setSchemaType(objectType);
origin: org.apache.ws.commons.schema/XmlSchema

XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema);
if (simpleEl.hasAttribute("name")) {
  simpleType.name = simpleEl.getAttribute("name");
origin: apache/cxf

private void visitAnonBoundedString() {
  XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, true);
  simpleType.setName(stringScopedName.toString());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
origin: raml-org/raml-java-parser

@Override
public XmlSchemaType visitString(StringResolvedType stringTypeDefinition)
  final XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, false);
  final XmlSchemaSimpleTypeRestriction content = new XmlSchemaSimpleTypeRestriction();
  content.setBaseTypeName(Constants.XSD_STRING);
origin: org.raml/raml-parser-2

@Override
public XmlSchemaType visitString(StringResolvedType stringTypeDefinition)
  final XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, false);
  final XmlSchemaSimpleTypeRestriction content = new XmlSchemaSimpleTypeRestriction();
  content.setBaseTypeName(Constants.XSD_STRING);
origin: apache/cxf

XmlSchemaSimpleType fixedSimpleType = new XmlSchemaSimpleType(schema, true);
XmlSchemaSimpleTypeRestriction fixedRestriction = new XmlSchemaSimpleTypeRestriction();
fixedRestriction.setBaseTypeName(Constants.XSD_DECIMAL);
origin: apache/cxf

XmlSchemaSimpleType enumSchemaSimpleType = new XmlSchemaSimpleType(schema, true);
enumSchemaSimpleType.setName(mapper.mapToQName(enumNameScope));
origin: apache/cxf

private void visitBoundedString() {
  XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(schema, true);
  simpleType.setName(stringScopedName.toString());
  XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction();
origin: apache/cxf

XmlSchemaType type = schemas.getTypeByQName(typeName);
if  (isList && type instanceof XmlSchemaSimpleType) {
  XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(type.getParent(), false);
  XmlSchemaSimpleTypeList list = new XmlSchemaSimpleTypeList();
  XmlSchemaSimpleType stype = (XmlSchemaSimpleType)type;
origin: apache/cxf

  wsaSchema = new XmlSchema(ReferenceConstants.WSADDRESSING_NAMESPACE, schemas);
XmlSchemaType wsaType = new XmlSchemaSimpleType(wsaSchema, true);
wsaType.setName(ReferenceConstants.WSADDRESSING_LOCAL_NAME);
org.apache.ws.commons.schemaXmlSchemaSimpleType<init>

Javadoc

Creates new XmlSchemaSimpleType

Popular methods of XmlSchemaSimpleType

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Menu (java.awt)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • Top Vim plugins
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