Skip Headers

# Using Java

Previous

Next

To configure an XML descriptor with a schema context using Java, create a descriptor amendment method (see "Configuring Amendment Methods") that uses `XMLSchemaReference` method `setSchemaContext`, as Example: Configuring Schema Context shows.

Configuring Schema Context

    public void addToDescriptor(ClassDescriptor descriptor) {
        descriptor.getSchemaReference().setSchemaContext(xPath);
    }