src/com/sun/org/apache/xerces/internal/impl/xs/XSDDescription.java
Print this page
*** 32,41 ****
--- 32,42 ----
* @xerces.internal
*
* @author Neil Graham, IBM
* @author Neeraj Bajaj, SUN Microsystems.
*
+ * @version $Id: XSDDescription.java,v 1.6 2010-11-01 04:39:55 joehw Exp $
*/
public class XSDDescription extends XMLResourceIdentifierImpl
implements XMLSchemaDescription {
// used to indicate what triggered the call
/**
*** 179,188 ****
--- 180,200 ----
fContextType == CONTEXT_INSTANCE ||
fContextType == CONTEXT_XSITYPE;
}
/**
+ * @return true is the schema is external
+ */
+ public boolean isExternal() {
+ return fContextType == CONTEXT_INCLUDE ||
+ fContextType == CONTEXT_REDEFINE ||
+ fContextType == CONTEXT_IMPORT ||
+ fContextType == CONTEXT_ELEMENT ||
+ fContextType == CONTEXT_ATTRIBUTE ||
+ fContextType == CONTEXT_XSITYPE;
+ }
+ /**
* Compares this grammar with the given grammar. Currently, we compare
* the target namespaces.
*
* @param descObj The description of the grammar to be compared with
* @return True if they are equal, else false