< prev index next >
src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/XSType.java
Print this page
*** 33,43 ****
*/
public interface XSType extends XSDeclaration {
/**
* Returns the base type of this type.
*
! * Note that if this type represents <tt>xs:anyType</tt>, this method returns itself.
* This is awkward as an API, but it follows the schema specification.
*
* @return always non-null.
*/
XSType getBaseType();
--- 33,43 ----
*/
public interface XSType extends XSDeclaration {
/**
* Returns the base type of this type.
*
! * Note that if this type represents {@code xs:anyType}, this method returns itself.
* This is awkward as an API, but it follows the schema specification.
*
* @return always non-null.
*/
XSType getBaseType();
*** 46,58 ****
final static int RESTRICTION = 2;
final static int SUBSTITUTION = 4;
int getDerivationMethod();
! /** Returns true if <code>this instanceof XSSimpleType</code>. */
boolean isSimpleType();
! /** Returns true if <code>this instanceof XSComplexType</code>. */
boolean isComplexType();
/**
* Lists up types that can substitute this type by using xsi:type.
* Includes this type itself.
--- 46,58 ----
final static int RESTRICTION = 2;
final static int SUBSTITUTION = 4;
int getDerivationMethod();
! /** Returns true if {@code this instanceof XSSimpleType}. */
boolean isSimpleType();
! /** Returns true if {@code this instanceof XSComplexType}. */
boolean isComplexType();
/**
* Lists up types that can substitute this type by using xsi:type.
* Includes this type itself.
*** 88,96 ****
/**
* Returns true if this type is derived from the specified type.
*
* <p>
! * Note that <tt>t.isDerivedFrom(t)</tt> returns true.
*/
boolean isDerivedFrom( XSType t );
}
--- 88,96 ----
/**
* Returns true if this type is derived from the specified type.
*
* <p>
! * Note that {@code t.isDerivedFrom(t)} returns true.
*/
boolean isDerivedFrom( XSType t );
}
< prev index next >