Limiting access to public methods

Hi!
I'm just curious if there's a way to do this.
You see, I have a package that is supposed to read an xml file, and through public methods give out data from that file.
Now, in order to do this, I implement a SAXHandler. But the SAXHandler needs to have public methods like startElement, etc.
Now let's say I'm one of those anally retentive information-hiding people. I really wouldn't want those public methods to be available to ust anyone who uses my class. And I can't make them protected, because the interface says they can't be, and anyway - there's no simple way to put the SAXParser in my package
While this example is specific, the problem seems a general one.
What do you do when: an interface calls for public methods, but you don't want just anyone to get to those public methods. (the only one you want to allow is the one that made you implement the interface in the first place).
Any hints? Thanks!
/Z

thanks for the hint's everyone! Your thoughts were along the lines of my own. Hiding the implementing class inside another class is probably my best bet.
I doubt I'll do it though - I guess I'm just not that anal... yet...;-)
I guess what I was thinking was that maybe there was some way around the necessity of wrapping the implementor, because that just seems ugly in a lot of cases and Java been so good at getting rid of ugly since Tiger IMHO.

Similar Messages

  • Error while accessing a public method of applet from javascript.

    Hi,
    I am getting "Object doesn't support this property or method" error
    when accessing a public method of applet from javascript in IE 6 using
    document.applets[0].myMethod();
    The same is working in IE 7.
    Thanks in advance.
    Regards,
    Phanikanth

    I don't know why it happens, but this works for me in both versions:
    <applet ..... name="MyApplet">
    </applet>and in javascript use
    document.MyApplet.myMethod()

  • Accessing a public method from javascript in an applet!!!

    Hi!!
    I'm have an applet (named say applet.class) in an html page that has a public method like this....
    public void doShowFrame()
              Frame frame = new frame();
         frame.setVisible (true);
    What I want to do is to call that method with javascript, I've tried to do it like this...
    function show(){
    applet.doShowFrame();
    But when i press the button that launch the java scipt the browser says
    'applet' is unidentified...
    What's wrong, what can I do??

    http://www.google.com/search?q=applet+javascript+communication&sourceid=opera&num=0&ie=utf-8&oe=utf-8
    how hard was that? seriously.

  • Delegate class to access non-public methods during testing?

    In the following video, towards the end, someone asked that FlexUnit assumes functions and methods are to be public when tested.
    http://tv.adobe.com/watch/max-2008-develop/testing-your-flex-applications-by-michael-labri ola/
    The speaker replied (@ 52:25),  to use Delegate classes, which are linked in when being tested. 
    Can someone show me an example of this?  Thanks.

    Mike, thanks for the reply!
    As I am new to unit testing, things are still solidifying.  I do understand that Unit Testing, “tests the smallest functional unit of code”, which are methods and functions.  However, I incorrectly assumed that *every* method needed to be tested *directly*.   Hence, I thought all methods would have to be public.  So that would have blown encapsulation out of the water.  Now I understand from your reply, that private methods get tested indirectly from public methods.  And that seems more ideal.
    Thanks again.

  • Access to a method located in view object from JSP page?

    Hi,
    How can i access a public method which is loacted in view
    object "viewobjectImpl.java" from JSP page.

    Juan,
    Either via Data tags or/and Java embedded code.(<%...%>).
    This method, suppose to execute a stored procedure.
    Thanks

  • Error accessing constnt public attribute of a class in an overwrite method.

    Hi Gurus,
    I am facing an error while accessing a constant public attribute while using it in the overwrite-exit of a methods.
    The constant which is declared as public in the attribute section of the class is not available in the overwrite-exit of the method.
    Please suggest me how to access the public attributes in the overwtire exits of the methods.
    Thanks.

    Hi Ramneek,
    Let me explain you the entire scenario:
    Actually we are trying to ehance the SAP standard class : CL_FITV_POWL_FEEDER_TRIPS in ECC 6.0 EHP 5 .
    We tried to create and overwrite-exit of the method "IF_POWL_FEEDER~GET_ACTIONS".
    Overwrite-exit of a method is just like a method which will be called instead of the standard method : IF_POWL_FEEDER~GET_ACTIONS.
    But the problem which we are facing here is that the Attributes which are defined in the class CL_FITV_POWL_FEEDER_TRIPS,  are getting accessed from the overwrite-exit method.
    Becuase of this we are not able to implement our custom logic.

  • Accessing a private variable from a public method of the same class

    can anyone please tell me how to access a private variable, declared in a private method from a public method of the same class?
    here is the code, i'm trying to get the variable int[][][] grids.
    public static int[][] generateS(boolean[][] constraints)
      private static int[][][] sudokuGrids()
        int[][][] grids; // array of arrays!
        grids = new int[][][]
        {

    Are you sure that you want to have everything static here? You're possibly throwing away all the object-oriented goodness that java has to offer.
    Anyway, it seems to me that you can't get to that variable because it is buried within a method -- think scoping rules. I think that if you want to get at that variable your program design may be under the weather and may benefit from a significant refactoring in an OOP-manner.
    If you need more specific help, then ask away, but give us more information please about what you are trying to accomplish here and how you want to do this. Good luck.
    Pete
    Edited by: petes1234 on Nov 16, 2007 7:51 PM

  • Public methods with package-only access?!

    Hello,
    I've just encountered the following problem:
    I was trying to invoke a method from the interface java.util.List via reflection on an instanceo obtained via java.util.Arrays.asList(Object[] array).
    Although this method is public (since is is declared in a public interface), the invocation failed with an IllegalAccessException.
    I guess the reckoning behind this is that the entire class has package protected access, thus you may not access any member reflectively outside its package.
    Does this really make sense? Is there a way to circumvent this behaviour?
    Any thoughts appreciated!

    I doubt your assumption (package protected) because
    asList simple returns an ArrayList. And if in an
    interface a method is declared you cannot reduce it's
    visibilty in an implementing class.Yes, the methods are all declared public, but the entire class (java.util.Arrays.ArrayList) is package-protected.
    But still, it's strange: you can obtein the method using, for instance, Arrays.asList(new Object[]{"hallo"})getClass().getMethod("size", null), but you cannot invoke it! Ironically, the error message of the IllegalAccessException says "cannot access member with modifiers public"...
    >
    But you can set the method accesible for reflection
    calls through:
    Method.setAccessible(true)
    Ah, thanks, now it works!
    But isn't that kinda dirty? If there was a Security Manager present, it would immediately fail, wouldn't it?
    I'd still like to understand why you cannot simply invoke a public method of a package-protected class!

  • How to set up full access and limited access wireless networks to laptops

    Dear Apple,
    I just received my Apple 1 TB Time Capsule. Can someone please help me with a network configuration I want to set up?
    I have a cable modem, and, three computers: a G4 iMAC (system 10.5.5), an Apple MacBook (system 10.5.5), and, a PC laptop.
    The Time Capsule is connect directly to the cable modem.
    Regarding the computers:
    (1) I want the G4 iMAC to connect directly, via an Ethernet cable, to the Time Capsule, WITH FULL ALLOWED ACCESS to the Time Capsule and to the back-up function of the Time Machine feature, and, with allowed access to my HP inkjet printer (class 6110);
    (2) I also want the MacBook laptop to wirelessly link to the Time Capsule via the Airport utility on the laptop, and, WITH FULL ALLOWED ACCESS to the Time Capsule and to the back-up function of the Time Machine feature (using WPA/WPA2 security, and, without the network name visible to third parties), and, WITH allowed access to my HP inkjet printer (class 6110);
    (3) I want the PC laptop to wirelessly link to the Time Capsule (using WEP security), but WITHOUT ACCESS to the Time Machine, WITHOUT access to the back-ups on the iMAC, WITHOUT access to the back-ups on the MacBook, and, WITHOUT access to the inkjet printer --- I only want the PC to use the Time Capsule as a WIRELESS ROUTER so that the PC laptop can access the internet.
    (4) And, finally, I want to specify (Time-Capsule/Time-Machine/server ) access ONLY to the iMAC and the MacBook, so that others cannot gain any access.
    I specifically need help to set up and configure the Time Capsule so that the PC laptop, as stated above, should have limited access to the Time Capsule --- namely, only to access the internet, and, not even be aware of stored data on the Time Capsule, not even be aware of the inkjet printer, and, not even see my WPA network name when the PC scans for wireless devices.
    I also want the iMAC and the MacBook to have access to each other’s data stored on the Time Capsule (like a common server).
    I have an old D-Link DI-624 wireless router that I used before buying the Time Capsule, which is available, if needed. Hopefully, I can configure the Time Capsule so that I would not need the old D-Link.
    Thank you in advance,
    David.

    The basic method for remote access is not changed.
    http://gigaom.com/apple/access-your-time-capsule-over-the-internet/
    You have a few issues.
    The really big one.. the school firewall should not let you connect to home.
    Check the IT admin at your school but if they allow anything but a few protocols like http and https through, they are not doing their job. You cannot afford in a large network to have every Tom Dick and Harry access any open device.. that can introduce viruses and trojans into the network behind the firewall.
    The general method for remote access on large networks is vpn and the TC offers no vpn connection.. just AFP.
    If you intend using 3G wireless stick or the like then you can get access.
    The next issue is static public IP or how to find the TC.. you need some way to find the IP if your ISP does not offer static ip, and the tc has no dyndns client. Since Apple shut down new users for mobileme and will close that service there is no method to find the TC IP without owning your own domain. You would be better placing the TC in bridge behind a router that does offer dyndns and port forward AFP (TCP 548) to it.

  • Access to protected method is ot allowed

    Hi,
    there is class with a protected  method. I get the message
    "Access to protected method is ot allowed"
    How must such methods be called if they are protected ?
    Regards
    sas

    Erdem, please try to post in the correct forum.  ABAP Objects questions belong in this forum, not general.
    Second, Amit Khare is correct.  The concept of Public/Protected/Private methods and attributes is not limited to ABAP Objects.  It is a common concept to most object oriented programming languages.  But if your read the ABAP Help on the appropriate keywords, then it is explained very clearly.
    matt

  • Error while calling a super class public method in the subclass constructor

    Hi ,
    I have code like this:
    CLASS gacl_applog DEFINITION ABSTRACT.
      PUBLIC SECTION.
        METHODS:
                create_new_a
                   IMPORTING  pf_obj       TYPE balobj_d
                              pf_subobj    TYPE balsubobj
                              pf_extnumber TYPE string
                   EXPORTING  pfx_log_hndl TYPE balloghndl
                   EXCEPTIONS error
    ENDCLASS.
    CLASS gacl_applog IMPLEMENTATION.
      METHOD create_new_a.
        DATA: ls_log TYPE bal_s_log.
      Header aufsetzen
        MOVE pf_extnumber TO ls_log-extnumber.
        ls_log-object     = pf_obj.
        ls_log-subobject  = pf_subobj.
        ls_log-aluser     = sy-uname.
        ls_log-alprog     = sy-repid.
        ls_log-aldate     = sy-datum.
        ls_log-altime     = sy-uzeit.
        ls_log-aldate_del = ls_log-aldate + 1.
        CALL FUNCTION 'BAL_LOG_CREATE'
             EXPORTING
                  i_s_log      = ls_log
             IMPORTING
                  e_log_handle = pfx_log_hndl
             EXCEPTIONS
                  OTHERS       = 1.
        IF ( sy-subrc NE 0 ).
          MESSAGE ID      sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING error.
        ENDIF.
      ENDMETHOD.
    CLASS gcl_applog_temp DEFINITION INHERITING FROM gacl_applog.
      PUBLIC SECTION.
        DATA: log_hndl   TYPE balloghndl READ-ONLY
            , t_log_hndl TYPE bal_t_logh READ-ONLY
        METHODS: constructor
                   IMPORTING  pf_obj       TYPE balobj_d
                              pf_subobj    TYPE balsubobj
                              pf_extnumber TYPE string
                   EXCEPTIONS error
               , msg_add      REDEFINITION
               , display      REDEFINITION
    ENDCLASS.
    CLASS gcl_applog_temp IMPLEMENTATION.
      METHOD constructor.
        CALL METHOD create_new_a
               EXPORTING  pf_obj       = pf_obj
                          pf_subobj    = pf_subobj
                          pf_extnumber = pf_extnumber
               IMPORTING  pfx_log_hndl = log_hndl.
        IF ( sy-subrc NE 0 ).
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING error.
        ENDIF.
      ENDMETHOD.
    A public method of Super class has been called from the constructor of the sub class. we are getting the syntax error :
    ' In the constructor method, you can only access instance attributes, instance methods, or "ME" after calling the constructor of the superclass…'
    Can you please suggest how to change the code with out affecting the functioanlity.
    Thank you ,
    Lakshmi.

    Hi,
    Call that method by instance of Subclass.   OR
    SUPER-->method.
    Read very useful document
    Constructors
    Constructors are special methods that cannot be called using CALL METHOD. Instead, they are called automatically by the system to set the starting state of a new object or class. There are two types of constructors - instance constructors and static constructors. Constructors are methods with a predefined name. To use them, you must declare them explicitly in the class.
    The instance constructor of a class is the predefined instance method CONSTRUCTOR. You declare it in the public section as follows:
    METHODS CONSTRUCTOR
            IMPORTING.. [VALUE(]<ii>[)] TYPE type [OPTIONAL]..
            EXCEPTIONS.. <ei>.
    and implement it in the implementation section like any other method. The system calls the instance constructor once for each instance of the class, directly after the object has been created in the CREATE OBJECT statement. You can pass the input parameters of the instance constructor and handle its exceptions using the EXPORTING and EXCEPTIONS additions in the CREATE OBJECT statement.
    The static constructor of a class is the predefined static method CLASS_CONSTRUCTOR. You declare it in the public section as follows:
    CLASS-METHODS CLASS_CONSTRUCTOR.
    and implement it in the implementation section like any other method. The static constructor has no parameters. The system calls the static constructor once for each class, before the class is accessed for the first time. The static constructor cannot therefore access the components of its own class.
    Pls. reward if useful....

  • How to regain access to public folder items

    Hi All,
    We have a few public folder items (mainly calendars) for which i (the admin) have no(or limited) access to.
    In outlook 2010 if i go to the properties of the public calendar i can only see an entry for Administrators for which has the access of only "Author"
    If i log into the exchange server powerscript shell and try and run
    Get-PublicFolderClientPermission -Identity \"<Item name>"
    I get the following error:
    No existing 'PublicFolderEntry' matches the following Identity: '\<Item name>'. Make sure that you specif
    ied the correct 'PublicFolderEntry' Identity and that you have the necessary permissions to view 'PublicFolderEntry'.
        + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolderClientPermission], MapiObjectNotFoundException
        + FullyQualifiedErrorId : C8510C4,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderClientPermission
    These are items have had existed in exchange since before it started and from Exchange 2003 to now Exchange 2010.
    Is there a way i can force the Administrator to have Owner rights on these items again?
    Thanks

    Ok... for all those other unfortunate souls out there who have no answer... here's the deal... The "Failed to Modify MAPI.NET Table" error is due to a problem with your DACL (permissions) table on the public folder(s). But, Exchange 2010 doesn't provide
    any utilities to correct this! exFolders replaces most PVDavAdmin functions but is does not have the "Fix DACL" option built in.
    After all my research and troubleshooting I discovered that the DACL issue was because I had entered explict permissions for the built-in Administrators group. This was resulting in the following error in event viewer: "The mailbox '' contains a folder <NAME
    OF MY PUBLIC FOLDER> with a security descriptor that violates the canonical format."
    Since I could not remove the existing public folders OR modify their permissions, but could still read their content, I copied all the content over to my mailbox. I then wanted to start completely fresh and created a new public folder store following the
    below steps:
    1. Dismount public folder database
    2. Move public folder database file and log (as a backup, not going to reuse it though)
    3. Mount public folder database (creates a new blank public folder database)
    *** NOTE: I could have probably just continued with the new blank public folder database, but I wanted to clear out all the old stuff and be sure it was all new and clean. So I continued through the following steps.
    4. Delete public folder database
    5. Delete database file and log files
    6. Opened ADSIEdit and deleted the existing "Folder Hierarchies" object from this location: Configuration\Services\Microsoft Exchange\<organization name>\Administrative groups
    *** NOTE: The next two steps are optional, as Exchange will do them for you when you create a new public folder database. BUT, exchange does NOT correctly assign the msExchPublicFolderTreeContainer class to the Folder Hierarchies object! It just makes it a
    container. So I opted to manually create it to force it to use the right class
    7. Recreated the "Folder Hierarchies" object in the same location (class is msExchPublicFolderTreeContainer)
    8. Create "Public Folders" object under "Folder Hierarchies" (class is msExchPFTree and attribute msExchPFTreeType MUST be set to 1)
    9. Went back to EMC, Organization Configuration, Mailbox, Database Management, and right clicked to create a new public folder database.
    10. Restart Information Store Service
    Once I had done all that I opened up outlook and created a new public folder. I then highlighted all the items in my mailbox that I had copied out of the original folder and copied them into this new public folder. As long as I do not add public folder permissions
    for the built-in Administrators group, then I am able to manage public folder permissions without any errors. I haven't tested to see if the same error occurs for other built-in security groups.

  • Accessing a public array from extra class.

    I am trying to access a public array that I declared in my main class from a separate class. I am a bit confused about why this is not working.
    The method search in the extra class is called in the extra class in part one of the nextKeystream method. How can I get it to use the int array "key". That I declared in the MainSolitaireDriver?
    Thanks
    My main class:
    import java.util.*;
    import java.io.*;
    import java.util.Scanner;
    public class MainSolitaireDriver
       int pcount = 0;
       public int[] key = new int[26];    
       public MainSolitaireDriver()
           getValues();
            public void getValues()
                try
                    Scanner inFile = new  Scanner(new File("input.txt"));
                    for (int counter = 0; counter < key.length; counter++ )
                        key[counter]= inFile.nextInt();
                        System.out.print(key[counter]+" ");
                catch(FileNotFoundException e )
                e.printStackTrace();
                System.err.print("Failure- File Not Found");
         public static void main (String[] args)
                /*String whereInTheWorldMyFileShouldBe = new File("input.txt").getAbsolutePath();
    System.out.println(whereInTheWorldMyFileShouldBe); */
    }My extra class:
    public class Solitaire
         private Deck deck;
         *  Initialize the deck from the current key deck ordering.
         public Solitaire (int[] shuffle)
              deck = new Deck(shuffle);
            public void getArray(int[] Array)
            public int search(int [] span, int target)
                for (int indexcount = 0; indexcount < span.length; indexcount++)
                    if (span[indexcount]==target)
                        return indexcount;
            public void getArray(int[] a)
         *  Returns the next keystream generated by the Solitaire  Algorithm
         public int nextKeystream()
              // Step one: Move Joker A one card down.
                    int jokerAindex = search(MainSolitaireDriver(key), 27);
                    System.out.print(jokerAindex);
              // Step two: Move Joker B two cards down.
              // Step three: Perform a triple cut.
              // Step four: Perform a count cut.
              // Step five: Find the output card.
              return 0;
         *  Returns the ciphertext corresponding to the specified
       *  plaintext, according to the current key deck ordering.
         public String encrypt(String plaintext)
              return "";
         *  Returns the plaintext corresponding to the specified
       *  ciphertext, according to the current key deck ordering.
         public String decrypt(String ciphertext)
              return "";
    }

    Main Class
    import java.util.*;
    import java.io.*;
    import java.util.Scanner;
    public class MainSolitaireDriver
       int pcount = 0;
       public int[] key = new int[26];    
       public MainSolitaireDriver()
           getValues();
            public void getValues()
                try
                    Scanner inFile = new  Scanner(new File("input.txt"));
                    for (int counter = 0; counter < key.length; counter++ )
                        key[counter]= inFile.nextInt();
                        System.out.print(key[counter]+" ");
                catch(FileNotFoundException e )
                e.printStackTrace();
                System.err.print("Failure- File Not Found");
         public static void main (String[] args)
                /*String whereInTheWorldMyFileShouldBe = new File("input.txt").getAbsolutePath();
    System.out.println(whereInTheWorldMyFileShouldBe); */
    }Solitaire Class (not main)
    public class Solitaire
         private Deck deck;
         *  Initialize the deck from the current key deck ordering.
         public Solitaire (int[] shuffle)
              deck = new Deck(shuffle);
            public void getArray(int[] Array)
            public int search(int [] span, int target)
                for (int indexcount = 0; indexcount < span.length; indexcount++)
                    if (span[indexcount]==target)
                        return indexcount;
            public void getArray(int[] a)
         *  Returns the next keystream generated by the Solitaire  Algorithm
         public int nextKeystream()
              // Step one: Move Joker A one card down.
                    int jokerAindex = search(MainSolitaireDriver.key, 27);
                    System.out.print(jokerAindex);
              // Step two: Move Joker B two cards down.
              // Step three: Perform a triple cut.
              // Step four: Perform a count cut.
              // Step five: Find the output card.
              return 0;
         *  Returns the ciphertext corresponding to the specified
       *  plaintext, according to the current key deck ordering.
         public String encrypt(String plaintext)
              return "";
         *  Returns the plaintext corresponding to the specified
       *  ciphertext, according to the current key deck ordering.
         public String decrypt(String ciphertext)
              return "";
    }

  • Think disabling WMM on G580 solved wifi Limited Access issue

    I'm posting this in the hope the hope that it may help someone else.  I have a G580, model 20150 with Windows 8.1 and the Broadcom wifi card.  Like many of you, I had the limited Access dropout issue.  Here's the things I can remember trying previously:
    Switching from the Microsoft Broadcom driver to the Broadcom driver.
    Turning off power management on the Broadcom driver
    Setting IBSS mode to just b/g
    Disable Bluetooth collaboration.
    Disabling all things power managment I could find.
    etc...
    The thing I found that seemed to fix it once and for all is going to the Advanced properties of the Broadcom and disabling "WMM".  As I understand it, WMM is a QoS feature for prioritizing audio/video port traffic over data.  Supposedly, you can't take advantage of wireless N speeds with WMM off, but I'll trade performance for not having to reconnect every 15 minutes.
    I'm not going to mess with telling you how to disable WMM since there are tons of instructions and discussions on the interwebs.  I also can't guarantee that it wasn't a combination of WMM and other fixes that solved my problem because I'm not willing to experiment on my finally working pc.  My system has been constantly connected and going strong for 12 hours.  
    Good luck and I hope this helps.

    Don't these usually work by intercepting the DNS quieries and then redirecting you to the gateway for authentication?  Check your DNS settings and  try to use theirs for the nameserver.  Make sure something else isn't getting specified such as Google Public DNS.

  • Access of undefined method/property through reference with a static type Class

    I get the following error: (it's not word for word but you get the idea)
    Error: Access of undefined method getStatus through reference with a static type Class.
    Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
    so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function User()
                trace("User Created!");
                mainStatus = 0;
            public function setStatus(status:int):void
             mainStatus = status;
        public function getStatus():int
            return mainStatus;
    Ok, so far so good.
    now I created a new .fla file under the root of /flash_working/. The class file is in /com/mypackage/User.as
    in my .fla file I have:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = User.getStatus();
    trace(i);
    That's all the code I have. Could someone please explain why it's giving me that error?
    If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
    Error: Access of undefined property mainStatus through reference with a static type Class.
    Thanks for any help!
    jef3189

    the public getStatus() function that you created needs to be referred to through an instance of the class.
    So:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = myUser.getStatus();
    trace(i);
    Also, an aside. You can create a getter/setter for status, to avoid having to do the function as such.
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function get status():int
                return mainStatus;
            public function set status(value:int):void
                 mainStatus = value as int;
              public function User()
                trace("User Created!");
                mainStatus = 0;
    And then, you can call it as:
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.status);
    EDIT
    I just noticed that you made the variable public as well, which means you can access it without getter/setter or function.
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.mainStatus);

Maybe you are looking for

  • Help on ORDERS05 IDoc mapping..

    Hi Experts,    Please help me out in finding out the IDoc Segment fields(ORDERS05) equivalent to the following SAP fields.   20  Quantity             VBAP  KWMENG  Num(6)   21  Unit of Measure  VBAP  VRKME      Char(3)   22  Gross Price       KONV  K

  • Need to create access to a pdf file from IOS Home Screen

    I need to be able to do this for a company executive.  I thought it would be straightforward using GoodReaders "gropen:\\"  command in Safari and using "Add to Home Screen".  Problem is,  as soon as I enter the gropen command it goes to GoodReader, 

  • Mountain lion crashes during secure start - pressing shift while swiching on.

    hallo, yesterday. after having installed mountain lion I had to repare the disk from a message of disk verify in disk utilities. I restarted pressig R and I repared the disk. Everythings was ok. Today I tried to start my MacBook Pro pressing shift bu

  • Dropdowns in a datatable

    I'm actually using JSC EA2, but I think this is a more general question. For my users to be able to maintain a database of company directors, they need to be able to select the director from a dropdown. They will then see that director's personal det

  • Where is Apple TV going?

    I am a big fan and user of ATV but its limitations have driven me to pair all my ATVs with a Dell Zino running Win7. With the ATV I have access to my library of movies, tv shows, music and pictures but I can not do web searches, check email, stream H