public String displayName() { return baseType.displayName(); }
public String displayName() { return baseType.displayName(); }
public String displayName() { return baseType.displayName(); }
public String displayName() { return baseType.displayName(); }
public String displayName() { return baseType.displayName(); }
public final String displayName() { String name = getName(); if(name!=null) return name; else return itemType.displayName()+"-list"; }
public final String displayName() { String name = getName(); if(name!=null) return name; else return itemType.displayName()+"-list"; }
public final String displayName() { String name = getName(); if(name!=null) return name; else return itemType.displayName()+"-list"; }
public final String displayName() { String name = getName(); if(name!=null) return name; else return itemType.displayName()+"-list"; }
public final String displayName() { String name = getName(); if(name!=null) return name; else return itemType.displayName()+"-list"; }
/** * derives a new datatype from atomic datatypes by union */ public UnionType( String nsUri, String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { super(nsUri,newTypeName); if(memberTypes.length==0) throw new DatatypeException(localize(ERR_EMPTY_UNION)); XSDatatypeImpl[] m = new XSDatatypeImpl[memberTypes.length]; System.arraycopy( memberTypes, 0, m, 0, memberTypes.length ); for( int i=0; i<m.length; i++ ) if( m[i].isFinal(DERIVATION_BY_UNION) ) throw new DatatypeException(localize( ERR_INVALID_MEMBER_TYPE, m[i].displayName() )); this.memberTypes = m; }
/** * derives a new datatype from atomic datatypes by union */ public UnionType( String nsUri, String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { super(nsUri,newTypeName); if(memberTypes.length==0) throw new DatatypeException(localize(ERR_EMPTY_UNION)); XSDatatypeImpl[] m = new XSDatatypeImpl[memberTypes.length]; System.arraycopy( memberTypes, 0, m, 0, memberTypes.length ); for( int i=0; i<m.length; i++ ) if( m[i].isFinal(DERIVATION_BY_UNION) ) throw new DatatypeException(localize( ERR_INVALID_MEMBER_TYPE, m[i].displayName() )); this.memberTypes = m; }
/** * derives a new datatype from atomic datatypes by union */ public UnionType( String nsUri, String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { super(nsUri,newTypeName); if(memberTypes.length==0) throw new DatatypeException(localize(ERR_EMPTY_UNION)); XSDatatypeImpl[] m = new XSDatatypeImpl[memberTypes.length]; System.arraycopy( memberTypes, 0, m, 0, memberTypes.length ); for( int i=0; i<m.length; i++ ) if( m[i].isFinal(DERIVATION_BY_UNION) ) throw new DatatypeException(localize( ERR_INVALID_MEMBER_TYPE, m[i].displayName() )); this.memberTypes = m; }
/** * derives a new datatype from atomic datatypes by union */ public UnionType( String nsUri, String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { super(nsUri,newTypeName); if(memberTypes.length==0) throw new DatatypeException(localize(ERR_EMPTY_UNION)); XSDatatypeImpl[] m = new XSDatatypeImpl[memberTypes.length]; System.arraycopy( memberTypes, 0, m, 0, memberTypes.length ); for( int i=0; i<m.length; i++ ) if( m[i].isFinal(DERIVATION_BY_UNION) ) throw new DatatypeException(localize( ERR_INVALID_MEMBER_TYPE, m[i].displayName() )); this.memberTypes = m; }
/** * derives a new datatype from atomic datatypes by union */ public UnionType( String nsUri, String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { super(nsUri,newTypeName); if(memberTypes.length==0) throw new DatatypeException(localize(ERR_EMPTY_UNION)); XSDatatypeImpl[] m = new XSDatatypeImpl[memberTypes.length]; System.arraycopy( memberTypes, 0, m, 0, memberTypes.length ); for( int i=0; i<m.length; i++ ) if( m[i].isFinal(DERIVATION_BY_UNION) ) throw new DatatypeException(localize( ERR_INVALID_MEMBER_TYPE, m[i].displayName() )); this.memberTypes = m; }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }