acumiskey
Mon, 21 Jul 2008 08:40:14 -0700
Author: acumiskey Date: Mon Jul 21 08:39:22 2008 New Revision: 678451 URL: http://svn.apache.org/viewvc?rev=678451&view=rev Log: Renamed variable and removed now redundant methods. Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/Registry.java Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/Registry.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/Registry.java?rev=678451&r1=678450&r2=678451&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/Registry.java (original) +++ xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/modca/Registry.java Mon Jul 21 08:39:22 2008 @@ -149,7 +149,7 @@ private byte componentId; private byte[] oid; private String name; - private boolean canBeIncluded; + private boolean includable; private String mimeType; /** @@ -158,13 +158,13 @@ * @param componentId the component id of this object type * @param oid the object id of this object type * @param name the object type name - * @param canBeIncluded true if this object can be included with an IOB structured field + * @param includable true if this object can be included with an IOB structured field * @param mimeType the mime type associated with this object type */ public ObjectType(byte componentId, byte[] oid, String name, - boolean canBeIncluded, String mimeType) { + boolean includable, String mimeType) { this.name = name; - this.canBeIncluded = canBeIncluded; + this.includable = includable; this.mimeType = mimeType; this.componentId = componentId; this.oid = oid; @@ -204,7 +204,7 @@ * @return true if this component can be included with an IOB structured field */ public boolean canBeIncluded() { - return this.canBeIncluded; + return this.includable; } /** @@ -216,26 +216,6 @@ return this.mimeType; } - /** - * Returns true if this is an image type - * - * @return true if this is an image type - */ - public boolean isImage() { - return mimeType == MimeConstants.MIME_TIFF - || mimeType == MimeConstants.MIME_GIF - || mimeType == MimeConstants.MIME_JPEG; - } - - /** - * Returns true if this is a graphic type - * - * @return true if this is a graphic type - */ - public boolean isGraphic() { - return mimeType == MimeConstants.MIME_SVG; - } - /** [EMAIL PROTECTED] */ public String toString() { return this.getName(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]