/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001,2002,2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Represent the schema list types
*
* @xerces.internal
*
* @author Neeraj Bajaj, Sun Microsystems, inc.
* @author Sandy Gao, IBM
*
* @version $Id: ListDV.java,v 1.7 2010-11-01 04:39:47 joehw Exp $
*/
public short getAllowedFacets(){
return (XSSimpleTypeDecl.FACET_LENGTH | XSSimpleTypeDecl.FACET_MINLENGTH | XSSimpleTypeDecl.FACET_MAXLENGTH | XSSimpleTypeDecl.FACET_PATTERN | XSSimpleTypeDecl.FACET_ENUMERATION | XSSimpleTypeDecl.FACET_WHITESPACE );
}
// this method should never be called: XSSimpleTypeDecl is responsible for
// calling the item type for the convertion
public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException{
return content;
}
// length of a list type is the number of items in the list
}
}
if (len > 0) {
}
for (int i = 1; i < len; i++) {
}
}
return canonical;
}
public int getLength() {
}
return false;
return false;
for (int i = 0 ; i < count ; i++) {
return false;
}//end of loop
//everything went fine.
return true;
}
public int hashCode() {
int hash = 0;
}
return hash;
}
return true;
}
}
return false;
}
return null;
}
}
/*
* List methods
*/
}
}
public int size() {
return getLength();
}
}
} // class ListDV