Return-Path: Delivered-To: apmail-xerces-commits-archive@www.apache.org Received: (qmail 50155 invoked from network); 18 Oct 2010 22:14:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 22:14:38 -0000 Received: (qmail 27694 invoked by uid 500); 18 Oct 2010 22:14:38 -0000 Delivered-To: apmail-xerces-commits-archive@xerces.apache.org Received: (qmail 27655 invoked by uid 500); 18 Oct 2010 22:14:38 -0000 Mailing-List: contact commits-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@xerces.apache.org Received: (qmail 27648 invoked by uid 99); 18 Oct 2010 22:14:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 22:14:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 22:14:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1BE2E23888DD; Mon, 18 Oct 2010 22:13:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1024043 - /xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java Date: Mon, 18 Oct 2010 22:13:38 -0000 To: commits@xerces.apache.org From: sandygao@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101018221338.1BE2E23888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sandygao Date: Mon Oct 18 22:13:37 2010 New Revision: 1024043 URL: http://svn.apache.org/viewvc?rev=1024043&view=rev Log: Setting SVN properties for new files. Modified: xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java (contents, props changed) Modified: xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java?rev=1024043&r1=1024042&r2=1024043&view=diff ============================================================================== --- xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java (original) +++ xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java Mon Oct 18 22:13:37 2010 @@ -1,97 +1,97 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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 - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - */ - -package org.apache.xerces.xs; - -/** - * Represents an actual value of a simple type. - */ -public interface XSValue { - - /** - * The schema normalized value. - */ - public String getNormalizedValue(); - - /** - * The actual value. null if the value is in error. - */ - public Object getActualValue(); - - /** - * The declared simple type definition used to validate this value. - * It can be a union type. - */ - public XSSimpleTypeDefinition getTypeDefinition(); - - /** - * If the declared simple type definition is a union, return the member - * type actually used to validate the value. Otherwise null. - */ - public XSSimpleTypeDefinition getMemberTypeDefinition(); - - /** - * If getTypeDefinition() returns a list type whose item type - * is a union type, then this method returns a list with the same length - * as the value list, for simple types that actually validated - * the corresponding item in the value. - */ - public XSObjectList getMemberTypeDefinitions(); - - /** - * The actual value built-in datatype, e.g. - * STRING_DT, SHORT_DT. If the type definition of this - * value is a list type definition, this method returns - * LIST_DT. If the type definition of this value is a list - * type definition whose item type is a union type definition, this - * method returns LISTOFUNION_DT. To query the actual value - * of the list or list of union type definitions use - * itemValueTypes(). - */ - public short getActualValueType(); - - /** - * In the case the actual value represents a list, i.e. the - * actualNormalizedValueType is LIST_DT, the - * returned array consists of one type kind which represents the itemType - * . For example: - *
 <simpleType name="listtype"> <list 
-     * itemType="positiveInteger"/> </simpleType> <element 
-     * name="list" type="listtype"/> ... <list>1 2 3</list> 
- * - * The schemaNormalizedValue value is "1 2 3", the - * actualNormalizedValueType value is LIST_DT, - * and the itemValueTypes is an array of size 1 with the - * value POSITIVEINTEGER_DT. - *
If the actual value represents a list type definition whose item - * type is a union type definition, i.e. LISTOFUNION_DT, - * for each actual value in the list the array contains the - * corresponding memberType kind. For example: - *
 <simpleType 
-     * name='union_type' memberTypes="integer string"/> <simpleType 
-     * name='listOfUnion'> <list itemType='union_type'/> 
-     * </simpleType> <element name="list" type="listOfUnion"/> 
-     * ... <list>1 2 foo</list> 
- * The - * schemaNormalizedValue value is "1 2 foo", the - * actualNormalizedValueType is LISTOFUNION_DT - * , and the itemValueTypes is an array of size 3 with the - * following values: INTEGER_DT, INTEGER_DT, STRING_DT. - */ - public ShortList getListValueTypes(); - -} +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + +package org.apache.xerces.xs; + +/** + * Represents an actual value of a simple type. + */ +public interface XSValue { + + /** + * The schema normalized value. + */ + public String getNormalizedValue(); + + /** + * The actual value. null if the value is in error. + */ + public Object getActualValue(); + + /** + * The declared simple type definition used to validate this value. + * It can be a union type. + */ + public XSSimpleTypeDefinition getTypeDefinition(); + + /** + * If the declared simple type definition is a union, return the member + * type actually used to validate the value. Otherwise null. + */ + public XSSimpleTypeDefinition getMemberTypeDefinition(); + + /** + * If getTypeDefinition() returns a list type whose item type + * is a union type, then this method returns a list with the same length + * as the value list, for simple types that actually validated + * the corresponding item in the value. + */ + public XSObjectList getMemberTypeDefinitions(); + + /** + * The actual value built-in datatype, e.g. + * STRING_DT, SHORT_DT. If the type definition of this + * value is a list type definition, this method returns + * LIST_DT. If the type definition of this value is a list + * type definition whose item type is a union type definition, this + * method returns LISTOFUNION_DT. To query the actual value + * of the list or list of union type definitions use + * itemValueTypes(). + */ + public short getActualValueType(); + + /** + * In the case the actual value represents a list, i.e. the + * actualNormalizedValueType is LIST_DT, the + * returned array consists of one type kind which represents the itemType + * . For example: + *
 <simpleType name="listtype"> <list 
+     * itemType="positiveInteger"/> </simpleType> <element 
+     * name="list" type="listtype"/> ... <list>1 2 3</list> 
+ * + * The schemaNormalizedValue value is "1 2 3", the + * actualNormalizedValueType value is LIST_DT, + * and the itemValueTypes is an array of size 1 with the + * value POSITIVEINTEGER_DT. + *
If the actual value represents a list type definition whose item + * type is a union type definition, i.e. LISTOFUNION_DT, + * for each actual value in the list the array contains the + * corresponding memberType kind. For example: + *
 <simpleType 
+     * name='union_type' memberTypes="integer string"/> <simpleType 
+     * name='listOfUnion'> <list itemType='union_type'/> 
+     * </simpleType> <element name="list" type="listOfUnion"/> 
+     * ... <list>1 2 foo</list> 
+ * The + * schemaNormalizedValue value is "1 2 foo", the + * actualNormalizedValueType is LISTOFUNION_DT + * , and the itemValueTypes is an array of size 3 with the + * following values: INTEGER_DT, INTEGER_DT, STRING_DT. + */ + public ShortList getListValueTypes(); + +} Propchange: xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: xerces/java/trunk/src/org/apache/xerces/xs/XSValue.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org For additional commands, e-mail: commits-help@xerces.apache.org