### Provide multiple example instances Source: https://github.com/xmlark/msv/blob/main/docs/generator/HowToUse.html The -example option can be used multiple times to provide additional example files. ```bash $ java -jar xmlgen.jar joe.trex -example ex1.xml -example ex2.xml ``` -------------------------------- ### Execute Schmit example Source: https://github.com/xmlark/msv/blob/main/schmit/README.md Example command to run Schmit using the provided test files in the project directory. ```java java -jar ./target/msv-schmit-2022.7-jar-with-dependencies.jar -IN ./src/resources/examples/simple/test.xml -XSL ./src/resources/examples/simple/test.xsl ``` -------------------------------- ### start(String name, String[] attributes) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/writer/XMLWriter.html Starts an XML element scope. ```APIDOC ### Method `public void start(String name)` `public void start(String name, String[] attributes)` Starts an XML element with the specified name and optional attributes. ``` -------------------------------- ### Handle Start Tags Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/Acceptor.html Push the current acceptor onto a stack and create a new child acceptor when encountering a start tag. ```java stack.push(a); a = a.createChildAcceptor( sti, null ); ``` -------------------------------- ### startDocument() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/writer/ContentHandlerAdaptor.html Adapts a SAX1 start document event. ```APIDOC ### void startDocument() #### Description Adapts a SAX1 start document event. #### Throws - **SAXException** - The client may raise a processing exception. ``` -------------------------------- ### startDocument() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/Verifier.html Signals the start of an XML document. ```APIDOC ### startDocument() Initializes the verification process for a new XML document. ``` -------------------------------- ### Provide a single example instance Source: https://github.com/xmlark/msv/blob/main/docs/generator/HowToUse.html Use the -example option to provide a valid XML instance that conforms to the schema. ```bash $ java -jar xmlgen.jar joe.trex -example abc.xml ``` -------------------------------- ### startDocument Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/psvi/TypedContentHandler.html Receives notification of the start of a document. ```APIDOC ### void startDocument(ValidationContext context) Receives notification of the start of a document. #### Parameters - **context** (ValidationContext) - This ValidationContext object is effective through the entire document. #### Throws - **SAXException** ``` -------------------------------- ### startAttribute Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/psvi/TypedContentHandler.html Receives notification of the start of an attribute. ```APIDOC ## void startAttribute(String namespaceURI, String localName, String qName) ### Description Receives notification of the start of an attribute. The value of the attribute is reported through the characterChunk method. ### Parameters - **namespaceURI** (String) - The namespace URI of the attribute. - **localName** (String) - The local name of the attribute. - **qName** (String) - The qualified name of the attribute. ### Throws - **SAXException** - If an error occurs during processing. ``` -------------------------------- ### startDocument() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/util/ForkContentHandler.html Notifies both internal ContentHandlers that the document parsing has started. ```APIDOC ## Method: startDocument() ### Description Signals the start of the document to both registered ContentHandlers. This method propagates the event to both the lhs and rhs handlers. ### Throws - **SAXException** - If any of the underlying handlers throw a SAXException. ``` -------------------------------- ### getTopLevel() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/trex/TREXGrammar.html Retrieves the start pattern defined in the grammar. ```APIDOC ### Method: getTopLevel() - **Description**: Returns the start pattern defined under the element, used to verify the document element. - **Returns**: Expression ``` -------------------------------- ### startElement Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/util/xml/DocumentFilter.html Signals the start of an XML element. ```APIDOC ## void startElement(String name, AttributeList atts) ### Description Receives notification of the beginning of an element. ### Parameters - **name** (String) - The element type name. - **atts** (AttributeList) - The attributes attached to the element. ### Throws - **SAXException** - Any SAX exception. ``` -------------------------------- ### startDocument() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/identity/IDConstraintChecker.html Signals the start of the document processing, overriding the base Verifier implementation. ```APIDOC ### Method: startDocument() #### Description Notifies the checker that the document processing has begun. #### Throws - **SAXException** - If an error occurs during the start of document processing. ``` -------------------------------- ### Configuration Methods Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/jaxp/DocumentBuilderFactoryImpl.html Methods for getting and setting features, attributes, and parsing properties on the factory. ```APIDOC ## Configuration Methods ### getAttribute(String name) Retrieves an attribute value from the underlying parser. ### setAttribute(String name, Object value) Sets an attribute on the underlying parser. ### getFeature(String name) Retrieves the value of a specific feature. ### setFeature(String name, boolean value) Sets the value of a specific feature. ### isNamespaceAware() Returns true if the factory is configured to be namespace aware. ### isValidating() Returns true if the factory is configured to perform validation. ``` -------------------------------- ### startElement(String, String, String, Attributes) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/trex/ng/RELAXNGReader.html Handles the start of an XML element during the parsing process. ```APIDOC ## startElement(String, String, String, Attributes) ### Description Processes the start of an element within the RELAX NG schema document. ### Parameters - **a** (String) - Namespace URI - **b** (String) - Local name - **c** (String) - Qualified name - **d** (Attributes) - Element attributes ``` -------------------------------- ### Run Schmit XSL transformation Source: https://github.com/xmlark/msv/blob/main/schmit/src/resources/examples/readme.txt Executes the Schmit jar with a specified stylesheet and input file. Run this command from within each sub-directory containing examples. ```bash $ java -jar schmit.jar -XSL -IN ``` -------------------------------- ### getTopLevel() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/trex/TREXGrammar.html Retrieves the start pattern defined in the TREX grammar. ```APIDOC ### Method Signature Expression getTopLevel() ### Description Returns the top-level Expression representing the start pattern of the TREX grammar. ### Returns - **Expression** - The start pattern of the grammar. ``` -------------------------------- ### OtherExp Transparency Example Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/OtherExp.html Demonstrates how an expression wrapped in OtherExp is treated by MSV as equivalent to the underlying expression. ```java Expression exp = new OtherExp( pool.createSequence(a,b) ); ``` ```java Expression exp = pool.createSequence(a,b); ``` -------------------------------- ### Example of successful validation Source: https://github.com/xmlark/msv/blob/main/docs/core/commandline.html Output displayed when both the schema and the document are valid. ```text start parsing a grammar. validating c:\work\relax\relax001.v00.xml the document is valid. ``` -------------------------------- ### GrammarReader.switchSource(Source, State) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/class-use/State.html Starts reading input from a source defined by a javax.xml.transform source. ```APIDOC ## GrammarReader.switchSource(Source source, State newState) ### Description Starts reading input from a source defined by a javax.xml.transform source. ### Parameters - **source** (javax.xml.transform.Source) - The input source. - **newState** (com.sun.msv.reader.State) - The state to switch to. ``` -------------------------------- ### Sample Input XML Source: https://github.com/xmlark/msv/blob/main/docs/schmit/readme.html An example XML document that matches the structure defined in the provided RELAX NG schema. ```xml ``` -------------------------------- ### numMatchedElements() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/regexp/CombinedChildContentExpCreator.html Gets the number of matched elements from the previous get operation. ```APIDOC ### Method public final int numMatchedElements() ### Description Gets the number of matched elements. This method should be called after calling the get method. The result is in effect until the next invocation of the get method. ``` -------------------------------- ### Example of text not matching a datatype Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/ErrorInfo.BadText.html This example shows text that fails validation when an integer type is expected. ```xml five ``` -------------------------------- ### help() Source: https://github.com/xmlark/msv/blob/main/docs/xsdlib/api/com/sun/msv/datatype/xsd/CommandLineTester.html Displays help information for the command-line tester. ```APIDOC ## public static void help() ### Description Prints the help documentation for the command-line tester to the standard output. ``` -------------------------------- ### startPrefixMapping(String prefix, String uri) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/AbstractVerifier.html Begins the scope of a prefix-URI Namespace mapping. ```APIDOC ### Method `void startPrefixMapping(String prefix, String uri)` ### Description Begins the scope of a prefix-URI Namespace mapping. ### Parameters - **prefix** (String) - The prefix being declared. - **uri** (String) - The Namespace URI to which the prefix is mapped. ``` -------------------------------- ### main(String[] args) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/driver/textui/Driver.html The main entry point for the text UI driver application. ```APIDOC ## public static void main(String[] args) ### Description Executes the text UI driver application using the provided command-line arguments. ### Parameters - **args** (String[]) - Command-line arguments for the driver. ### Throws - **Exception** - Thrown if an error occurs during execution. ``` -------------------------------- ### Example of PCDATA appearing where not allowed Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/ErrorInfo.BadText.html This example shows invalid text placed between the head and body tags of an HTML structure. ```xml ... ** invalid text ** ... ``` -------------------------------- ### main(String[] args) Source: https://github.com/xmlark/msv/blob/main/docs/xsdlib/api/com/sun/msv/datatype/xsd/CommandLineTester.html The main entry point for the command-line tester application. ```APIDOC ## public static void main(String[] args) ### Description Executes the command-line tester for the datatype library. This method serves as the entry point for the application. ### Parameters - **args** (String[]) - Command-line arguments provided to the tester. ### Throws - **IOException** - If an I/O error occurs during execution. ``` -------------------------------- ### Example of Non-Fail-Fast Validation Source: https://github.com/xmlark/msv/blob/main/docs/core/JARV.html A DTD and XML document example illustrating how non-fail-fast validators may delay error signaling until the end-element event. ```xml ``` -------------------------------- ### XML Schema Attribute Propagation Example Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/xmlschema/AttributeWildcardComputer.html An example of a complex type derived by restriction, illustrating the attribute propagation behavior that AttributeWildcardComputer is designed to handle. ```xml <attribute name="abc" ... /> ``` -------------------------------- ### Creating a TREXGrammar from scratch Source: https://github.com/xmlark/msv/blob/main/docs/core/nativeAPI.html Demonstrates manual construction of a TREXGrammar using ExpressionPool and ElementPattern. ```java import com.sun.msv.grammar.trex.*; import com.sun.msv.grammar.*; TREXGrammar create() { ExpressionPool pool = new ExpressionPool(); TREXGrammar g = new TREXGrammar(pool); // create an empty grammar g.start = new ElementPattern( // name class that constrains tag name new SimpleNameClass("http://namespace.uri/","tagname"), // content model pool.createMixed( pool.createSequence( new ElementPattern( new SimpleNameClass("http://namespace.uri/","tagname2"), pool.createEpsilon() // empty ), pool.createAttribute( new SimpleNameClass("","attr"), pool.createAnyString() ) ) ) ); // ElementPatterns are created outside ExpressionPool return g; } ``` -------------------------------- ### RELAX NG Pattern and Instance Example Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/psvi/TypedContentHandler.html An example of a RELAX NG schema definition and a corresponding XML instance document used to illustrate typed content handling. ```xml A B ``` -------------------------------- ### Verifier Creation Shortcuts Source: https://github.com/xmlark/msv/blob/main/docs/core/JARV.html Demonstrates that calling newVerifier directly on the factory is equivalent to compiling the schema first. ```java Verifier v = factory.compileSchema(x).newVerifier(); Verifier v = factory.newVerifier(x); ``` -------------------------------- ### startElement(String namespaceUri, String localName, String qName, Attributes atts) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/AbstractVerifier.html Receives notification of the beginning of an element. ```APIDOC ### Method `void startElement(String namespaceUri, String localName, String qName, Attributes atts) throws SAXException` ### Description Receives notification of the beginning of an element. ### Parameters - **namespaceUri** (String) - The Namespace URI, or the empty string if the element has no Namespace URI. - **localName** (String) - The local name (without prefix). - **qName** (String) - The qualified name (with prefix). - **atts** (Attributes) - The attributes attached to the element. ### Throws - **SAXException** - Any SAX exception, possibly wrapping another exception. ``` -------------------------------- ### Examples of BadAttribute error triggers Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/ErrorInfo.BadAttribute.html These examples illustrate scenarios where an ErrorInfo.BadAttribute error is triggered, such as an unexpected attribute name or an attribute value that fails to match its defined datatype. ```xml When an attribute value does not match the specified datatype. For example, the following document causes this error if the "width" attribute is specified as the int type. ``` -------------------------------- ### init(char[] b, String name, InputEntity stack, boolean isPE) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/scanner/dtd/InputEntity.html Initializes the input entity with the provided character buffer, name, stack reference, and parameter entity flag. ```APIDOC ### Method void init(char[] b, String name, InputEntity stack, boolean isPE) ### Description Initializes the input entity. Throws SAXException if initialization fails. ### Parameters - **b** (char[]) - Character buffer - **name** (String) - Name of the entity - **stack** (InputEntity) - Reference to the entity stack - **isPE** (boolean) - Flag indicating if this is a parameter entity ``` -------------------------------- ### Examples of Bad Tag Name Errors Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/ErrorInfo.BadTagName.html These examples illustrate scenarios where a BadTagName error occurs, such as invalid tag placement, typos in tag names, or elements appearing where they are not permitted. ```xml ... ... ... When there is a typo in the tag name. ... ... When an element appears where no element is allowed at all. <meta ...> ``` -------------------------------- ### StartTagInfo Constructor Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/util/StartTagInfo.html Constructs a new StartTagInfo object with the specified tag details and context. ```APIDOC ## Constructor: StartTagInfo(String namespaceURI, String localName, String qName, Attributes attributes, IDContextProvider2 context) ### Description Creates an immutable instance of StartTagInfo containing the tag's namespace, names, attributes, and the validation context. ### Parameters - **namespaceURI** (String) - The namespace URI of the element. - **localName** (String) - The local name of the element. - **qName** (String) - The qualified name of the element. - **attributes** (Attributes) - The attributes associated with the start tag. - **context** (IDContextProvider2) - The context providing additional information for datatype validation. ``` -------------------------------- ### startElement(String qName, AttributeList qAtts) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/writer/ContentHandlerAdaptor.html Adapts a SAX1 startElement event, optionally performing Namespace processing. ```APIDOC ### void startElement(String qName, AttributeList qAtts) #### Description Adapts a SAX1 startElement event. If necessary, performs Namespace processing. #### Parameters - **qName** (String) - The qualified (prefixed) name. - **qAtts** (AttributeList) - The XML 1.0 attribute list (with qnames). #### Throws - **SAXException** ``` -------------------------------- ### View Schmit command line syntax Source: https://github.com/xmlark/msv/blob/main/schmit/src/resources/examples/readme.txt Displays the help information and available command line options for the Schmit tool. ```bash $ java -jar schmit.jar ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/xmlschema/XMLSchemaSchema.ComplexTypeContainer.html Retrieves a ComplexTypeExp by its name. ```APIDOC ### Method `public ComplexTypeExp get(String name)` Retrieves the ComplexTypeExp associated with the specified name. #### Parameters - **name** (String) - The name of the complex type to retrieve. ``` -------------------------------- ### Configuration Methods Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/util/GrammarLoader.html Methods to configure the loading process. ```APIDOC ## void setController(GrammarReaderController controller) Sets the GrammarReaderController object that will control various aspects of the parsing. ## void setPool(ExpressionPool pool) Sets the ExpressionPool object that will be used during the loading process. ## void setSAXParserFactory(SAXParserFactory factory) Sets the factory object which is used to create XML parsers to parse schema files. ## void setStrictCheck(boolean value) Sets the strict check flag. ``` -------------------------------- ### Display Schmit command line help Source: https://github.com/xmlark/msv/blob/main/schmit/README.md Command to view the detailed command line syntax and options. ```java java -jar ./target/schmit--jar-with-dependencies.jar ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/xmlschema/XMLSchemaSchema.ElementDeclContainer.html Retrieves an ElementDeclExp by its name. ```APIDOC ## Method: get(String name) ### Description Retrieves the ElementDeclExp associated with the specified name. ### Parameters - **name** (String) - The name of the element declaration to retrieve. ### Returns - **ElementDeclExp** - The element declaration expression if found. ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/xmlschema/XMLSchemaSchema.AttributeGroupContainer.html Retrieves an AttributeGroupExp by its name. ```APIDOC ### Method `public AttributeGroupExp get(String name)` Retrieves the AttributeGroupExp associated with the specified name. ``` -------------------------------- ### Run Schmit with command line arguments Source: https://github.com/xmlark/msv/blob/main/schmit/README.md General syntax for executing the Schmit jar file with an XSL stylesheet and an input XML file. ```java java -jar schmit.jar -XSL -IN ``` -------------------------------- ### getTargetNamespace() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/xmlschema/ComplexTypeExp.html Gets the target namespace property of the component. ```APIDOC ### Method String getTargetNamespace() ### Description Returns the target namespace property of this component as specified in the XML Schema specification. ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/relax/RELAXModule.TagContainer.html Retrieves a TagClause by its name. ```APIDOC ### Method public TagClause get(String name) ### Description Retrieves the TagClause associated with the specified name. ### Parameters - **name** (String) - The name of the tag clause to retrieve. ``` -------------------------------- ### create(IDContextProvider core) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/util/IDContextProviderWrapper.html Creates a new instance of IDContextProvider2 by wrapping an existing IDContextProvider. ```APIDOC ### Method public static IDContextProvider2 create(IDContextProvider core) ### Description Creates a new IDContextProvider2 instance that wraps the provided core IDContextProvider. ### Parameters - **core** (IDContextProvider) - The core context provider to wrap. ``` -------------------------------- ### startModelGroup Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/scanner/dtd/DTDEventListener.html Receives notification of the start of a model group. ```APIDOC ### void startModelGroup() #### Description Signals the start of a model group. #### Throws - **SAXException** - If an error occurs during processing. ``` -------------------------------- ### startContentModel Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/scanner/dtd/DTDEventListener.html Receives notification that parsing of a content model is beginning. ```APIDOC ## void startContentModel(String elementName, short contentModelType) ### Description Receives notification that parsing of a content model is beginning. ### Parameters - **elementName** (String) - Name of the element whose content model is going to be defined. - **contentModelType** (short) - The type of content model (e.g., CONTENT_MODEL_EMPTY, CONTENT_MODEL_ANY, CONTENT_MODEL_MIXED, CONTENT_MODEL_CHILDREN). ### Throws - **SAXException** - If an error occurs during parsing. ``` -------------------------------- ### Create VerifierFactory instance Source: https://github.com/xmlark/msv/blob/main/docs/core/JARV.html Initialize the VerifierFactory by creating an instance of TheFactoryImpl. ```java VerifierFactory factory = new com.sun.msv.verifier.jarv.TheFactoryImpl(); ``` -------------------------------- ### Run Relames from Command Line Source: https://github.com/xmlark/msv/blob/main/docs/relames/README.md Execute the jar file to display the usage screen. ```java java -jar relames.jar ``` -------------------------------- ### getConcreteType() Source: https://github.com/xmlark/msv/blob/main/docs/xsdlib/api/com/sun/msv/datatype/xsd/DataTypeWithFacet.html Gets the concrete type object of the restriction chain. ```APIDOC ## ConcreteType getConcreteType() ### Description Retrieves the underlying concrete type object in the restriction chain. ### Returns - **ConcreteType** - The concrete type object. ``` -------------------------------- ### getMatchedElements() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/regexp/CombinedChildContentExpCreator.html Obtains the elements matched during the previous get operation. ```APIDOC ### Method public final ElementExp[] getMatchedElements() ### Description Obtains matched elements. This method should be called after calling the get method. The result is in effect until the next invocation of the get method. ``` -------------------------------- ### getLastCharacterType() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/IVerifier.html Gets the DataType that validated the last characters processed. ```APIDOC ### Method org.relaxng.datatype.Datatype[] getLastCharacterType() ### Description Returns an array of Datatype objects that validated the last characters. ``` -------------------------------- ### startRemembering() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/scanner/dtd/InputEntity.html Initiates the buffering of text content from the input source. ```APIDOC ### Method `public void startRemembering()` ### Description Starts the process of remembering text content from the current input source. ``` -------------------------------- ### getc() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/scanner/dtd/InputEntity.html Gets the next Java character from the entity stream. ```APIDOC ### Method char getc() ### Description Reads the next character. May represent part of a surrogate pair or the end of an entity. Throws IOException or SAXException. ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/xmlschema/XMLSchemaSchema.SimpleTypeContainer.html Retrieves a SimpleTypeExp object by its name. ```APIDOC ### Method `public SimpleTypeExp get(String name)` Retrieves the SimpleTypeExp associated with the specified name. #### Parameters - **name** (String) - The name of the SimpleTypeExp to retrieve. ``` -------------------------------- ### run(String[] args) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/driver/textui/Driver.html Runs the driver logic with the specified arguments and returns an integer status code. ```APIDOC ## public static int run(String[] args) ### Description Executes the driver logic with the provided arguments and returns a status code. ### Parameters - **args** (String[]) - Arguments for the driver execution. ### Returns - **int** - The execution status code. ### Throws - **Exception** - Thrown if an error occurs during execution. ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/relax/RELAXModule.DatatypeContainer.html Retrieves an XSDatatype from the container by its name. ```APIDOC ## XSDatatype get(String name) ### Description Retrieves the XSDatatype associated with the specified name. ### Parameters - **name** (String) - The name of the datatype to retrieve. ### Returns - **XSDatatype** - The requested datatype instance. ``` -------------------------------- ### get(String name) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/grammar/relax/RELAXModule.AttPoolContainer.html Retrieves an existing AttPoolClause by name. ```APIDOC ### Method: get **Signature:** `public AttPoolClause get(String name)` **Description:** Retrieves the `AttPoolClause` associated with the specified name. **Parameters:** - **name** (String) - The name of the attribute pool clause to retrieve. **Returns:** - `AttPoolClause` - The attribute pool clause, or null if not found. ``` -------------------------------- ### LightStack() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/util/LightStack.html Constructs a new, empty LightStack instance. ```APIDOC ## Constructor: LightStack() ### Description Initializes a new instance of the LightStack class. ``` -------------------------------- ### SimpleAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp owner, Expression continuation) Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/regexp/SimpleAcceptor.html Constructs a new SimpleAcceptor instance. ```APIDOC ### Constructor SimpleAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp owner, Expression continuation) ### Description Creates a new instance of SimpleAcceptor to verify the content model of an ElementExp. ### Parameters - **docDecl** (REDocumentDeclaration) - The document declaration. - **combined** (Expression) - The combined expression. - **owner** (ElementExp) - The ElementExp that accepted the start tag. - **continuation** (Expression) - The expression to be used by the parent acceptor once this acceptor is satisfied. ``` -------------------------------- ### getReference() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/reader/trex/ng/StartState.html Retrieves the reference expression associated with the start state. ```APIDOC ### Method `protected ReferenceExp getReference()` ### Description Returns the `ReferenceExp` object that represents the start declaration being parsed by this state. ### Returns - **ReferenceExp** - The reference expression associated with the start element. ``` -------------------------------- ### SAXParserFactoryImpl Methods Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/jaxp/SAXParserFactoryImpl.html Core methods for configuring the factory and creating new SAXParser instances. ```APIDOC ### Methods - **newSAXParser()**: Creates a new SAXParser instance configured with the factory's settings. - **getFeature(String name)**: Retrieves the value of a specific feature. - **setFeature(String name, boolean value)**: Sets the value of a specific feature. - **isNamespaceAware() / setNamespaceAware(boolean awareness)**: Gets or sets the namespace awareness configuration. - **isValidating() / setValidating(boolean validating)**: Gets or sets the validation configuration. ``` -------------------------------- ### isComplex() Source: https://github.com/xmlark/msv/blob/main/docs/core/api/com/sun/msv/verifier/regexp/CombinedChildContentExpCreator.html Checks if the result of the 'get' method is not the union of all elements of concern. ```APIDOC ### Method boolean isComplex() ### Description Checks if the result of the 'get' method is not the union of all elements of concern. Within this class, the combined child content expression is always the union of all elements of concern, but derived classes may differ. ### Returns - **boolean** - true if the combined child content expression is not the union of all elements of concern, false otherwise. ```