You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/06/13 22:44:08 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java

mrglavas    2005/06/13 13:44:08

  Modified:    java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
  Log:
  Merging in changes from the JAXP 1.3 RI. Make XSSimpleTypeDecl an implementer of org.w3c.dom.TypeInfo.
  
  Revision  Changes    Path
  1.72      +11 -3     xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
  
  Index: XSSimpleTypeDecl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- XSSimpleTypeDecl.java	13 Jun 2005 04:55:30 -0000	1.71
  +++ XSSimpleTypeDecl.java	13 Jun 2005 20:44:08 -0000	1.72
  @@ -45,6 +45,7 @@
   import org.apache.xerces.xs.XSSimpleTypeDefinition;
   import org.apache.xerces.xs.XSTypeDefinition;
   import org.apache.xerces.xs.datatypes.ObjectList;
  +import org.w3c.dom.TypeInfo;
   
   /**
    * @xerces.internal
  @@ -54,7 +55,7 @@
    *
    * @version $Id$
    */
  -public class XSSimpleTypeDecl implements XSSimpleType {
  +public class XSSimpleTypeDecl implements XSSimpleType, TypeInfo {
   	
   	static final short DV_STRING        = PRIMITIVE_STRING;
   	static final short DV_BOOLEAN       = PRIMITIVE_BOOLEAN;
  @@ -3203,7 +3204,14 @@
   			return XSConstants.MULTIVALUE_FACET;
   		}
   	}
  -	
  +
  +    public String getTypeNamespace() {
  +        return getNamespace();
  +    }
  +
  +    public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) {
  +        return isDOMDerivedFrom(typeNamespaceArg, typeNameArg, derivationMethod);
  +    }
   	
   } // class XSSimpleTypeDecl
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org