--- old/src/java.corba/share/classes/org/omg/CORBA/TypeCode.java 2015-04-07 20:40:36.882505264 +0400 +++ new/src/java.corba/share/classes/org/omg/CORBA/TypeCode.java 2015-04-07 20:40:36.778505268 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,7 +31,7 @@ /** * A container for information about a specific CORBA data * type. - *
+ *
* TypeCode
objects are used:
*
TCKind.tk_sequence
and also fields with the values
* boolean
and 10
for the
- * type of sequence elements and the length of the sequence. + * type of sequence elements and the length of the sequence. *
TypeCode
objects can be obtained in various ways:
@@ -164,8 +164,7 @@
*
* Java IDL extends the CORBA specification to allow all operations permitted
* on a struct
TypeCode
to be permitted
- * on an exception
TypeCode
as well.
- *
+ * on an exception
TypeCode
as well.
*/
public abstract class TypeCode implements IDLEntity {
@@ -175,23 +174,21 @@
* they are interchangeable and give identical results when
* TypeCode
operations are applied to them.
*
- * @param tc the TypeCode
object to compare against
- * @return true
if the type codes are equal;
+ * @param tc the TypeCode
object to compare against
+ * @return true
if the type codes are equal;
* false
otherwise
*/
-
public abstract boolean equal(TypeCode tc);
/**
- * Tests to see if the given TypeCode
object is
- * equivalent to this TypeCode
object.
- *
- *
- *
- * @param tc the typecode to compare with this typecode
- *
- * @return true
if the given typecode is equivalent to
- * this typecode; false
otherwise
+ * Tests to see if the given TypeCode
object is
+ * equivalent to this TypeCode
object.
+ *
+ *
+ * @param tc the typecode to compare with this typecode
+ *
+ * @return true
if the given typecode is equivalent to
+ * this typecode; false
otherwise
*
*/
public abstract boolean equivalent(TypeCode tc);
@@ -199,9 +196,9 @@
/**
* Strips out all optional name and member name fields,
* but leaves all alias typecodes intact.
- * @return a TypeCode
object with optional name and
- * member name fields stripped out, except for alias typecodes,
- * which are left intact
+ * @return a TypeCode
object with optional name and
+ * member name fields stripped out, except for alias typecodes,
+ * which are left intact
* @see CORBA
package
* comments for unimplemented features
*/
@@ -220,7 +217,6 @@
* value of the kind
field of this
* TypeCode
object
*/
-
public abstract TCKind kind();
/**
@@ -239,13 +235,12 @@
* also always have a RepositoryId. If there is no RepositoryId, the
* method can return an empty string.
*
- * @return the RepositoryId for this TypeCode
object
- * or an empty string if there is no RepositoryID
+ * @return the RepositoryId for this TypeCode
object
+ * or an empty string if there is no RepositoryID
* @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
* is invoked on an inappropriate kind ofTypeCode
* object
*/
-
public abstract String id() throws BadKind;
/**
@@ -268,7 +263,6 @@
* is invoked on an inappropriate kind ofTypeCode
* object
*/
-
public abstract String name() throws BadKind;
/**
@@ -287,7 +281,6 @@
* is invoked on an inappropriate kind of TypeCode
* object
*/
-
public abstract int member_count() throws BadKind;
/**
@@ -312,7 +305,6 @@
* is invoked on an inappropriate kind of TypeCode
* object
*/
-
public abstract String member_name(int index)
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
@@ -336,7 +328,6 @@
* is invoked on an inappropriate kind of TypeCode
* object
*/
-
public abstract TypeCode member_type(int index)
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
@@ -344,13 +335,13 @@
* Retrieves the label of the union member
* identified by the given index. For the default member,
* the label is the zero octet.
- *
+ *
* The method member_label
can only be invoked on union
* TypeCode
objects.
*
- * @param index index of the union member for which the
+ * @param index index of the union member for which the
* label is being requested
- * @return an Any
object describing the label of
+ * @return an Any
object describing the label of
* the requested union member or the zero octet for
* the default member
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is
@@ -360,7 +351,6 @@
* is invoked on a non-union TypeCode
* object
*/
-
public abstract Any member_label(int index)
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
@@ -376,7 +366,6 @@
* is invoked on a non-union TypeCode
* object
*/
-
public abstract TypeCode discriminator_type()
throws BadKind;
@@ -393,7 +382,6 @@
* is invoked on a non-union TypeCode
* object
*/
-
public abstract int default_index() throws BadKind;
/**
@@ -412,7 +400,6 @@
* is invoked on an inappropriate kind of TypeCode
* object
*/
-
public abstract int length() throws BadKind;
/**
@@ -424,7 +411,7 @@
* that multidimensional arrays are represented by nesting
* TypeCode
objects, one per dimension.
* For boxed valuetypes, it returns the boxed type.
- *
+ *
* The method content_type
can be invoked on sequence, array,
* alias, and boxed valuetype TypeCode
objects.
*
@@ -436,37 +423,36 @@
* is invoked on an inappropriate kind of TypeCode
* object
*/
-
public abstract TypeCode content_type() throws BadKind;
/**
- * Returns the number of digits in the fixed type described by this
- * TypeCode
object. For example, the typecode for
- * the number 3000.275d could be fixed<7,3>
, where
- * 7 is the precision and 3 is the scale.
- *
- * @return the total number of digits
+ * Returns the number of digits in the fixed type described by this
+ * TypeCode
object. For example, the typecode for
+ * the number 3000.275d could be fixed<7,3>
, where
+ * 7 is the precision and 3 is the scale.
+ *
+ * @return the total number of digits
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
* is invoked on an inappropriate kind of TypeCode
* object
- *
+ *
*/
public abstract short fixed_digits() throws BadKind ;
/**
- * Returns the scale of the fixed type described by this
- * TypeCode
object. A positive number indicates the
- * number of digits to the right of the decimal point.
- * For example, the number 3000d could have the
- * typecode fixed<4,0>
, where the first number is
- * the precision and the second number is the scale.
- * A negative number is also possible and adds zeroes to the
- * left of the decimal point. In this case, fixed<1,-3>
,
- * could be the typecode for the number 3000d.
- *
- * @return the scale of the fixed type that this
- * TypeCode
object describes
+ * Returns the scale of the fixed type described by this
+ * TypeCode
object. A positive number indicates the
+ * number of digits to the right of the decimal point.
+ * For example, the number 3000d could have the
+ * typecode fixed<4,0>
, where the first number is
+ * the precision and the second number is the scale.
+ * A negative number is also possible and adds zeroes to the
+ * left of the decimal point. In this case, fixed<1,-3>
,
+ * could be the typecode for the number 3000d.
+ *
+ * @return the scale of the fixed type that this
+ * TypeCode
object describes
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
* is invoked on an inappropriate kind of TypeCode
* object
@@ -492,7 +478,6 @@
* @see CORBA
package
* comments for unimplemented features
*/
-
abstract public short member_visibility(int index)
throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds ;
@@ -512,7 +497,6 @@
* @see CORBA
package
* comments for unimplemented features
*/
-
abstract public short type_modifier() throws BadKind ;
/**
@@ -528,6 +512,5 @@
* @see CORBA
package
* comments for unimplemented features
*/
-
abstract public TypeCode concrete_base_type() throws BadKind ;
}