AddSchema Method.
495347
public void addSchema(String version, TypesType typesType, MessageInfo recMessageInfo)
    {
        String name = this.fixName(recMessageInfo.getField(MessageInfo.DESCRIPTION).toString());
        
        Import importel = schemaFactory.createImport();
        typesType.getAny().add(importel);
        String code = recMessageInfo.getField(MessageInfo.CODE).toString();
        if (code == null)
            code = name;
        String namespace = ((PropertiesField)recMessageInfo.getField(MessageInfo.MESSAGE_PROPERTIES)).getProperty(MessageInfo.NAMESPACE);
        String element = ((PropertiesField)recMessageInfo.getField(MessageInfo.MESSAGE_PROPERTIES)).getProperty(MessageInfo.ELEMENT);
        String schemaLocation = ((PropertiesField)recMessageInfo.getField(MessageInfo.MESSAGE_PROPERTIES)).getProperty(MessageInfo.SCHEMA_LOCATION);
        
        if (namespace == null)
            namespace = this.getMessageControl().getNamespaceFromVersion(version);
        if (element == null)
            if (code != null)
                element = code;
        if (schemaLocation == null)
            if (code != null)
                schemaLocation = code + ".xsd";
        schemaLocation = this.getMessageControl().getSchemaLocation(version, schemaLocation);
        if (namespace != null)
            importel.setNamespace(namespace);
        importel.setSchemaLocation(schemaLocation);
    }
274001
function addSchemaField(schema, pathName, fieldSpec) {
	const fieldSchema = {};
	fieldSchema[pathName] = fieldSpec;
	return schema.add(fieldSchema);
}
624156
public void registerDefinedSchema(DataSchema schema)
  {
    final ClassTemplateSpec spec = createFromDataSchema(schema);
    _schemaToClassMap.put(schema, spec);
    _classNameToSchemaMap.put(spec.getFullName(), schema);
  }
214544
private static void addSchemaDefinitions(SchemaSet ids, Coder coder) throws JMFException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
      SibTr.debug(tc, "Decoding " + coder.count + "new schema definitions");

    // Decode the new schemas and add them to the registry and the list of known
    // schemas for this connection.
    for (int i = 0; i < coder.count; i++) {
      int length = ArrayUtil.readInt(coder.buffer, coder.offset);
      coder.offset += ArrayUtil.INT_SIZE;
      JMFSchema schema = JMFRegistry.instance.createJMFSchema(coder.buffer, coder.offset, length);
      JMFRegistry.instance.register(schema);
      ids.add(schema.getLongID());
      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "   Added Schema "+ debugSchema(schema));
      coder.offset += length;
    }
  }
817109
public void addIntermediateSchema(Schema schema) throws TupleMRException {
    if (schemaAlreadyExists(schema.getName())) {
      throw new TupleMRException("There's a schema with that name '" + schema.getName()
          + "'");
    }
    schemas.add(schema);
  }
195668
protected void addCitrusSchema(String schemaName) throws IOException, SAXException, ParserConfigurationException {
        Resource resource = new PathMatchingResourcePatternResolver().getResource("classpath:com/consol/citrus/schema/" + schemaName + ".xsd");
        if (resource.exists()) {
            addXsdSchema(resource);
        }
    }
39287
def add_errors(self, *errors: Union[BaseSchemaError, List[BaseSchemaError]]) -> None:
        
        self.schema_loader.add_errors(*errors)
997791
def insert(self):
        """"""
        ret = True

        schema = self.schema
        fields = self.depopulate(False)

        q = self.query
        q.set_fields(fields)
        pk = q.insert()
        if pk:
            fields = q.fields
            fields[schema.pk.name] = pk
            self._populate(fields)

        else:
            ret = False

        return ret
1175516
protected function bootSchemas()
    {
        $configSchemas = config('graphql.schemas');
        foreach ($configSchemas as $name => $schema) {
            $this->app['graphql']->addSchema($name, $schema);
        }
    }
493268
def _add_missing_schema_attributes(self):
        '''
        
        '''
        for attr in [attr for attr in dir(self) if not attr.startswith('__')]:
            attr_val = getattr(self, attr)
            if isinstance(getattr(self, attr), SchemaItem) and \
               attr not in self._attributes:

                self._attributes.append(attr)
727405
def funcschema(default=None, *args, **kwargs):
    """"""
    if default is None:
        return lambda default: funcschema(default=default, *args, **kwargs)

    return FunctionSchema(default=default, *args, **kwargs)
1121728
def add_schema(self, schema):
        

        # serialize instances of SchemaNode before parsing
        if isinstance(schema, SchemaNode):
            schema = schema.to_schema()

        for subschema in self._get_subschemas(schema):
            # delegate to SchemaType object
            schema_generator = self._get_generator_for_schema(subschema)
            schema_generator.add_schema(subschema)

        # return self for easy method chaining
        return self
974195
private void registerInternal(JMFSchema schema) {
    schemaTable.set((HashedArray.Element)schema);
    Object assoc = schema.getJMFType().getAssociation();
    if (assoc != null)
      associations.put(assoc, schema);
  }
1117949
private function addSchema(Schema $schema)
    {
        if (array_key_exists($schema->getName(), $this->schemas)) {
            throw new \Exception(sprintf('Schema "%s" is allready registered.', $schema->getName()));
        }

        $this->schemas[$schema->getName()] = $schema;

        return $this;
    }
1155101
public void add(SchemaTableTree stt, String column, String alias) {
        add(stt.getSchemaTable(), column, stt.getStepDepth(), alias);
    }
706679
public function setSchema(Schema $obj_schema)
    {
        $this->obj_schema = $obj_schema;
        $this->setKind($obj_schema->getKind());
        return $this;
    }
99846
public function addSchema(SchemaInterface $schema): SchemaBuilder
    {
        $this->schemas[$schema->getClass()] = $schema;

        return $this;
    }