Ejemplo n.º 1
0
 /**
  * Returns <code>true</code> or <code>false</code> depending on whether the given {@link XMLNode}
  * object contains valid XHTML content.
  *
  * <p>In SBML, the content of the 'notes' subelement available on {@link SBase}, as well as the
  * 'message' subelement available on {@link Constraint}, must conform to <a target='_blank'
  * href='http://www.w3.org/TR/xhtml1/'>XHTML&nbsp;1.0</a> (which is simply an XML-ized version of
  * HTML). However, the content cannot be <em>entirely</em> free-form; it must satisfy certain
  * requirements defined in the <a target='_blank'
  * href='http://sbml.org/Documents/Specifications'>SBML specifications</a> for specific SBML
  * Levels. This method implements a verification process that lets callers check whether the
  * content of a given {@link XMLNode} object conforms to the SBML requirements for 'notes' and
  * 'message' structure.
  *
  * <p>An aspect of XHTML validity is that the content is declared to be in the XML namespace for
  * XHTML&nbsp;1.0. There is more than one way in which this can be done in XML. In particular, a
  * model might not contain the declaration within the 'notes' or 'message' subelement itself, but
  * might instead place the declaration on an enclosing element and use an XML namespace prefix
  * within the 'notes' element to refer to it. In other words, the following is valid: <div
  * class='fragment'>
  *
  * <pre>
  * &lt;sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'
  * xmlns:xhtml='http://www.w3.org/1999/xhtml'&gt;
  * &lt;model&gt;
  * &lt;notes&gt;
  * &lt;xhtml:body&gt;
  * &lt;xhtml:center&gt;&lt;xhtml:h2&gt;A Simple Mitotic Oscillator&lt;/xhtml:h2&gt;&lt;/xhtml:center&gt;
  * &lt;xhtml:p&gt;A minimal cascade model for the mitotic oscillator.&lt;/xhtml:p&gt;
  * &lt;/xhtml:body&gt;
  * &lt;/notes&gt;
  * ... rest of model ...
  * &lt;/sbml&gt;
  * </pre>
  *
  * </div> Contrast the above with the following, self-contained version, which places the XML
  * namespace declaration within the <code>&lt;notes&gt;</code> element itself: <div
  * class='fragment'>
  *
  * <pre>
  * &lt;sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'&gt;
  * &lt;model&gt;
  * &lt;notes&gt;
  * &lt;html xmlns='http://www.w3.org/1999/xhtml'&gt;
  * &lt;head&gt;
  * &lt;title/&gt;
  * &lt;/head&gt;
  * &lt;body&gt;
  * &lt;center&gt;&lt;h2&gt;A Simple Mitotic Oscillator&lt;/h2&gt;&lt;/center&gt;
  * A minimal cascade model for the mitotic oscillator.&lt;/p&gt;
  * &lt;/body&gt;
  * &lt;/html&gt;
  * &lt;/notes&gt;
  * ... rest of model ...
  * &lt;/sbml&gt;
  * </pre>
  *
  * </div>
  *
  * <p>Both of the above are valid XML. The purpose of the <code>sbmlns</code> argument to this
  * method is to allow callers to check the validity of 'notes' and 'message' subelements whose XML
  * namespace declarations have been put elsewhere in the manner illustrated above. Callers can can
  * pass in the {@link SBMLNamespaces} object of a higher-level model component if the {@link
  * XMLNode} object does not itself have the XML namespace declaration for XHTML&nbsp;1.0.
  *
  * <p>
  *
  * @param xhtml the {@link XMLNode} to be checked for conformance.
  * @param sbmlns the {@link SBMLNamespaces} associated with the object.
  *     <p>
  * @return <code>true</code> if the {@link XMLNode} content conforms, <code>false</code>
  *     otherwise.
  *     <p>
  * @docnote The native C++ implementation of this method defines a default argument value. In the
  *     documentation generated for different libSBML language bindings, you may or may not see
  *     corresponding arguments in the method declarations. For example, in Java, a default
  *     argument is handled by declaring two separate methods, with one of them having the argument
  *     and the other one lacking the argument. However, the libSBML documentation will be
  *     <em>identical</em> for both methods. Consequently, if you are reading this and do not see
  *     an argument even though one is described, please look for descriptions of other variants of
  *     this method near where this one appears in the documentation.
  */
 public static boolean hasExpectedXHTMLSyntax(XMLNode xhtml) {
   return libsbmlJNI.SyntaxChecker_hasExpectedXHTMLSyntax__SWIG_1(XMLNode.getCPtr(xhtml), xhtml);
 }
Ejemplo n.º 2
0
 public void AddXMLSibling(XMLNode psNewSibling) {
   gdalJNI.XMLNode_AddXMLSibling(swigCPtr, this, XMLNode.getCPtr(psNewSibling), psNewSibling);
 }
Ejemplo n.º 3
0
 /**
  * Returns <code>true</code> or <code>false</code> depending on whether the given {@link XMLNode}
  * object contains valid XHTML content.
  *
  * <p>In SBML, the content of the 'notes' subelement available on {@link SBase}, as well as the
  * 'message' subelement available on {@link Constraint}, must conform to <a target='_blank'
  * href='http://www.w3.org/TR/xhtml1/'>XHTML&nbsp;1.0</a> (which is simply an XML-ized version of
  * HTML). However, the content cannot be <em>entirely</em> free-form; it must satisfy certain
  * requirements defined in the <a target='_blank'
  * href='http://sbml.org/Documents/Specifications'>SBML specifications</a> for specific SBML
  * Levels. This method implements a verification process that lets callers check whether the
  * content of a given {@link XMLNode} object conforms to the SBML requirements for 'notes' and
  * 'message' structure.
  *
  * <p>An aspect of XHTML validity is that the content is declared to be in the XML namespace for
  * XHTML&nbsp;1.0. There is more than one way in which this can be done in XML. In particular, a
  * model might not contain the declaration within the 'notes' or 'message' subelement itself, but
  * might instead place the declaration on an enclosing element and use an XML namespace prefix
  * within the 'notes' element to refer to it. In other words, the following is valid: <div
  * class='fragment'>
  *
  * <pre>
  * &lt;sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'
  * xmlns:xhtml='http://www.w3.org/1999/xhtml'&gt;
  * &lt;model&gt;
  * &lt;notes&gt;
  * &lt;xhtml:body&gt;
  * &lt;xhtml:center&gt;&lt;xhtml:h2&gt;A Simple Mitotic Oscillator&lt;/xhtml:h2&gt;&lt;/xhtml:center&gt;
  * &lt;xhtml:p&gt;A minimal cascade model for the mitotic oscillator.&lt;/xhtml:p&gt;
  * &lt;/xhtml:body&gt;
  * &lt;/notes&gt;
  * ... rest of model ...
  * &lt;/sbml&gt;
  * </pre>
  *
  * </div> Contrast the above with the following, self-contained version, which places the XML
  * namespace declaration within the <code>&lt;notes&gt;</code> element itself: <div
  * class='fragment'>
  *
  * <pre>
  * &lt;sbml xmlns='http://www.sbml.org/sbml/level2/version3' level='2' version='3'&gt;
  * &lt;model&gt;
  * &lt;notes&gt;
  * &lt;html xmlns='http://www.w3.org/1999/xhtml'&gt;
  * &lt;head&gt;
  * &lt;title/&gt;
  * &lt;/head&gt;
  * &lt;body&gt;
  * &lt;center&gt;&lt;h2&gt;A Simple Mitotic Oscillator&lt;/h2&gt;&lt;/center&gt;
  * A minimal cascade model for the mitotic oscillator.&lt;/p&gt;
  * &lt;/body&gt;
  * &lt;/html&gt;
  * &lt;/notes&gt;
  * ... rest of model ...
  * &lt;/sbml&gt;
  * </pre>
  *
  * </div>
  *
  * <p>Both of the above are valid XML. The purpose of the <code>sbmlns</code> argument to this
  * method is to allow callers to check the validity of 'notes' and 'message' subelements whose XML
  * namespace declarations have been put elsewhere in the manner illustrated above. Callers can can
  * pass in the {@link SBMLNamespaces} object of a higher-level model component if the {@link
  * XMLNode} object does not itself have the XML namespace declaration for XHTML&nbsp;1.0.
  *
  * <p>
  *
  * @param xhtml the {@link XMLNode} to be checked for conformance.
  * @param sbmlns the {@link SBMLNamespaces} associated with the object.
  *     <p>
  * @return <code>true</code> if the {@link XMLNode} content conforms, <code>false</code>
  *     otherwise.
  *     <p>
  * @docnote The native C++ implementation of this method defines a default argument value. In the
  *     documentation generated for different libSBML language bindings, you may or may not see
  *     corresponding arguments in the method declarations. For example, in Java, a default
  *     argument is handled by declaring two separate methods, with one of them having the argument
  *     and the other one lacking the argument. However, the libSBML documentation will be
  *     <em>identical</em> for both methods. Consequently, if you are reading this and do not see
  *     an argument even though one is described, please look for descriptions of other variants of
  *     this method near where this one appears in the documentation.
  */
 public static boolean hasExpectedXHTMLSyntax(XMLNode xhtml, SBMLNamespaces sbmlns) {
   return libsbmlJNI.SyntaxChecker_hasExpectedXHTMLSyntax__SWIG_0(
       XMLNode.getCPtr(xhtml), xhtml, SBMLNamespaces.getCPtr(sbmlns), sbmlns);
 }
Ejemplo n.º 4
0
 public void AddXMLChild(XMLNode psChild) {
   gdalJNI.XMLNode_AddXMLChild(swigCPtr, this, XMLNode.getCPtr(psChild), psChild);
 }