Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Rep Power
    0

    Default has private access error message

    Plesae need suuport to reslove this issue



    Java Code:
    package com.ejada.alinma.edh.xsdtransform.util;
    [COLOR="Lime"]import t24_transformer_form.T24_Transformer_FormView;[/COLOR]
    
    public class ConfigKeys {
    	/**
    	 * constants representing the XSD tags and attributes' names used in the parse process
    	 */
    	public static final String TAG_SCHEMA = "xsd:schema";
    	public static final String TAG_TEXT = "#text";
    	public static final String TAG_COMPLEX_TYPE = "xsd:complexType";
    	public static final String TAG_SIMPLE_TYPE = "xsd:simpleType";
    	public static final String TAG_SEQUENCE = "xsd:sequence";
    	public static final String TAG_ATTRIBUTE = "xsd:attribute";
    	public static final String TAG_ELEMENT = "xsd:element";
    	public static final String TAG_ANNOTATION = "xsd:annotation";
    	public static final String TAG_APP_INFO = "xsd:appinfo";
    	public static final String TAG_HAS_PROPERTY = "xsd:hasProperty";
    	public static final String TAG_RESTRICTION = "xsd:restriction";
    	public static final String TAG_MAX_LENGTH = "xsd:maxLength";
    	public static final String ATTR_NAME = "name";
    	public static final String ATTR_VALUE = "value";
    	public static final String ATTR_TYPE = "type";
    	public static final String ATTR_MIXED = "mixed";
    	public static final String ATTR_USE = "use";
    	public static final String ATTR_REF = "ref";
    	public static final String ATTR_MAX_OCCURS = "maxOccurs";
    	
    	/**
    	 * constants representing specific XSD attributes' values used in the parse process
    	 */
    	public static final String FIELD_TAG = "fieldtag";
    	public static final String FIELD_NUMBER = "fieldnumber";
    	public static final String FIELD_DATA_TYPE = "fielddatatype";
    	public static final String FIELD_FMT = "fieldfmt";
    	public static final String FIELD_LEN = "fieldlen";
    	public static final String FIELD_INPUT_LEN = "fieldinputlen";
    	public static final String FIELD_GROUP_NUMBER = "fieldgroupnumber";
    	public static final String FIELD_MV_GROUP_NUMBER = "fieldmvgroupnumber";
    	public static final String FIELD_SHORT_NAME = "fieldshortname";
    	public static final String FIELD_NAME = "fieldname";
    	public static final String FIELD_COLUMN_NAME = "fieldcolumnname";
    	public static final String FIELD_GROUP_NAME = "fieldgroupname";
    	public static final String FIELD_MV_GROUP_NAME = "fieldmvgroupname";
    	public static final String FIELD_JUSTIFICATION = "fieldjustification";
    	public static final String FIELD_TYPE = "fieldtype";
    	public static final String FIELD_SINGLE_OR_MULTI = "singleormulti";
    	
    	/**
    	 * misc constants
    	 */
    	public static final String DELIMITER_COLUMN_TYPE = "#";
    	public static final String COLUMN_FK_ROW = "FK_ROW";
    	public static final String COLUMN_XPK_ROW = "XPK_ROW";
    	public static final String COLUMN_XPK_MULTIVALUE = "XPK";
    	public static final String COLUMN_XPK_ROW_TYPE = "VARCHAR2(255)";
    	public static final String COLUMN_XPK_ROW_LENGTH = "255";
    	public static final int SQL_VIEW_MULTI = 1;
    	public static final int SQL_VIEW_SINGLE = 2;
    	
    	/**
    	 * XSD data types
    	 */
    	public static final String DATA_TYPE_XSD_NUMERIC = "numeric";
    	public static final String DATA_TYPE_XSD_DECIMAL = "decimal";
    	public static final String DATA_TYPE_XSD_STRING = "string";
    	public static final String DATA_TYPE_XSD_DATE = "date";
    	
    	/**
    	 * application configuration properties
    	 */
    	public static final String PROP_LOG4J_CONFIG_FILE = "log4j_config";
    	[COLOR="Red"]public static final String PROP_MAIN_VIEW_NAME_SINGLE = T24_Transformer_FormView.view_name_single;[/COLOR]
    //view_name_single has private access in t24_transformer_form
    	public static final String PROP_MAIN_VIEW_NAME_MULTI = "view_name_multi";
    	public static final String PROP_MAIN_TABLE_NAME = "main_edh_table_name";
    	public static final String PROP_SUB_TABLE_PREFIX = "sub_table_prefix";
    	public static final String PROP_SOURCE_XSD_FULLNAME = "source_xsd_fullname";
    	public static final String PROP_RESULTS_PATH = "results_path";
    	public static final String PROP_NEW_XSD_FILENAME = "new_xsd_filename";
    	public static final String PROP_CSV_FILENAME = "csv_filename";
    }
    Last edited by Eranga; 04-13-2010 at 04:00 PM. Reason: added code tags

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    String surround with double-quotes.

    Java Code:
    public static final String PROP_MAIN_VIEW_NAME_SINGLE = T24_Transformer_FormView.view_name_single;
    as,

    Java Code:
    public static final String PROP_MAIN_VIEW_NAME_SINGLE = "T24_Transformer_FormView.view_name_single";
    Hope it's a local variable.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Pleas use code tags next time also, unformated codes are really hard to read. If you don't know how to do that, check on my signature. You can find a link to relevant explanation.

Similar Threads

  1. Who has received private message from codeforme
    By Fubarable in forum Forum Lobby
    Replies: 4
    Last Post: 04-13-2010, 03:00 AM
  2. Java Private Message System
    By javaNumpsy in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-29-2010, 05:11 PM
  3. Replies: 3
    Last Post: 03-14-2009, 07:22 AM
  4. How to access private data types from public classes?
    By kevzspeare in forum New To Java
    Replies: 3
    Last Post: 03-07-2009, 04:19 AM
  5. error message on jsp
    By sandor in forum Web Frameworks
    Replies: 1
    Last Post: 04-11-2007, 02:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •