Public and protected properties

Hi, I would like to know if it is possible to dynamically
list the protected and public properties and methods of a class
during runtime. Any help would be greatly appreciated

Well, I'm not really sure if describeType() shows protected
properties but public properties for sure:
http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_8.html
http://blog.flexexamples.com/2007/12/09/debugging-flex-applications-using-the-describetype -method-and-the-objectutil-class/

Similar Messages

  • What is the difference between Public and Protected Attributes

    hi ppl,
             what is the difference if i declare attributes under public or protected to access the private method.for both (public or private) section iam getting the same result.
    CLASS CL DEFINITION.
    *protected section.
      public section.
    DATA: M TYPE I VALUE 100.
    private SECTION.
    METHODS: FREE.
    ENDCLASS.
      CLASS CL IMPLEMENTATION.
       METHOD: FREE.
         WRITE:/ M.
         ENDMETHOD.
      ENDCLASS.
    CLASS CL1 DEFINITION INHERITING FROM CL.
    public section.
    METHODS: FREE1.
    ENDCLASS.
      CLASS CL1 IMPLEMENTATION.
         METHOD: FREE1.
         WRITE:/ M.
         ENDMETHOD.
      ENDCLASS.
    DATA: OBJ  TYPE REF TO CL1.
      START-OF-SELECTION.
      CREATE OBJECT : OBJ.
      END-OF-SELECTION.
      CALL METHOD: OBJ->FREE1.
    Please use meaningful subject in future questions and Post in correct forum*
    Please learn to use  tags around your ABAP
    Edited by: Vijay Babu Dudla on Dec 1, 2008 12:37 AM
    Edited by: Matt on Dec 1, 2008 4:16 PM

    hi,
        Iam really soory people..It wont repeat again.pls guide me in this regard
    hi ppl,
    what is the difference if i declare attributes under public or protected to access the private method.for both (public or private) section iam getting the same result.
    CLASS CL DEFINITION.
    *protected section.
    public section.
    DATA: M TYPE I VALUE 100.
    private SECTION.
    METHODS: FREE.
    ENDCLASS.
    CLASS CL IMPLEMENTATION.
    METHOD: FREE.
    WRITE:/ M.
    ENDMETHOD.
    ENDCLASS.
    CLASS CL1 DEFINITION INHERITING FROM CL.
    public section.
    METHODS: FREE1.
    ENDCLASS.
    CLASS CL1 IMPLEMENTATION.
    METHOD: FREE1.
    WRITE:/ M.
    ENDMETHOD.
    ENDCLASS.
    DATA: OBJ TYPE REF TO CL1.
    START-OF-SELECTION.
    CREATE OBJECT : OBJ.
    END-OF-SELECTION.
    CALL METHOD: OBJ->FREE1.
    Edited by: Matt on Dec 1, 2008 4:18 PM

  • What is the difference of  public-read and  public-read protected

    I have noticed that the access of some variables in API document is public-read protected. I tried the following code. They seem all the same.
    class FatherClass{
    public-read var a;
    public-read protected var b;
    init{
        a=1;
        println(a);
        b=1;
        println(b);
    class SubClass extends FatherClass{
        init{
            a=4;
            println(a);
            b=4;
            println(b);
    var subClass=SubClass{};

    As you see in my code, subclass can write the variable with either public-read and public-read protected. What write access do the public-read protected widen? That's because your subclass is in the same script as the variable. Move the subclass to a separate script and it would not be able to write when the access is public-read.
    "public-read" = any code can read, code in the same script can write.
    "public-read protected" = any code can read, code in the same script, in the same package or in a subclass can write.

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • Protecting/hiding Business Catalyst website from the public and search engines while in development.

    How can we protect/hide our Business Catalyst-based website from the public and search engines while we are developing it? It seems like anyone can access it, even though it is not complete.
    We are using Dreamweaver to build our website, if that helps. Is there any way to have a test instance of BC that is password protected for development and testing? Thank you for your ideas.

    I have something in my room but I do not tell you it is there or where it is or what it does.
    How do you know unless I show you?
    Do not share your links out, the sitemap is not on till you activate the system.
    I have built BC sites for over 5 years and only one case for me of a client posting out an unfinished site got it indexed by google.

  • What is the best malwear detection and protection for use on a Mac?

    What is the best malwear detection and protection for use on a Mac?

    Mac users often ask whether they should install "anti-virus" software. The answer usually given on ASC is "no." The answer is right, but it may give the wrong impression that there is no threat from what are loosely called "viruses." There  is a threat, and you need to educate yourself about it.
    1. This is a comment on what you should—and should not—do to protect yourself from malicious software ("malware") that circulates on the Internet and gets onto a computer as an unintended consequence of the user's actions. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the computer, or who has been able to log in to it remotely. That threat is in a different category, and there's no easy way to defend against it.
    The comment is long because the issue is complex. The key points are in sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."
    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    ☞ It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    ☞ It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    ☞ It can easily be disabled or overridden by the user.
    ☞ A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    ☞ An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    Apple has so far failed to revoke the codesigning certificates of some known abusers, thereby diluting the value of Gatekeeper and the Developer ID program. These failures don't involve App Store products, however.
    For the reasons given, App Store products, and—to a lesser extent—other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandbox security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they are not, and never will be, complete protection. Malware is foremost a problem of human behavior, and no technological fix alone is going to solve it. Trusting software to protect you will only make you more vulnerable.
    The best defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and Internet criminals. If you're better informed than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some warning signs of danger.
    Software from an untrustworthy source
    ☞ Software of any kind is distributed via BitTorrent, or Usenet, or on a website that also distributes pirated music or movies.
    ☞ Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website. Do not trust an alert from any website to update Flash, or your browser, or any other software.
    ☞ Rogue websites such as Softonic, Soft32, and CNET Download distribute free applications that have been packaged in a superfluous "installer."
    ☞ The software is advertised by means of spam or intrusive web ads. Any ad, on any site, that includes a direct link to a download should be ignored.
    Software that is plainly illegal or does something illegal
    ☞ High-priced commercial software such as Photoshop is "cracked" or "free."
    ☞ An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission. All "YouTube downloaders" are in this category, though not all are necessarily malicious.
    Conditional or unsolicited offers from strangers
    ☞ A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    ☞ A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.
    ☞ You win a prize in a contest you never entered.
    ☞ Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.
    ☞ A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.
    ☞ Anything online that you would expect to pay for is "free."
    Unexpected events
    ☞ A file is downloaded automatically when you visit a web page, with no other action on your part. Delete any such file without opening it.
    ☞ You open what you think is a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file. Even if you don't get the alert, you should still delete any file that isn't what you expected it to be.
    ☞ An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    ☞ Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.
    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it—not JavaScript—in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the left side of the address bar when visiting a secure site.
    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial "anti-virus" (AV) or "Internet security" products for the Mac, as they are all worse than useless. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store—nothing else.
    Why shouldn't you use commercial AV products?
    ☞ To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. This technique is a proven failure, as a major AV software vendor has admitted. Most attacks are "zero-day"—that is, previously unknown. Recognition-based AV does not defend against such attacks, and the enterprise IT industry is coming to the realization that traditional AV software is worthless.
    ☞ Its design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere. In order to meet that nonexistent threat, commercial AV software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    ☞ By modifying the operating system, the software may also create weaknesses that could be exploited by malware attackers.
    ☞ Most importantly, a false sense of security is dangerous.
    8. An AV product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject low-level code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An AV app is not needed, and cannot be relied upon, for protection against OS X malware. It's useful, if at all, only for detecting Windows malware, and even for that use it's not really effective, because new Windows malware is emerging much faster than OS X malware.
    Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else. A malicious attachment in email is usually easy to recognize by the name alone. An actual example:
    London Terror Moovie.avi [124 spaces] Checked By Norton Antivirus.exe
    You don't need software to tell you that's a Windows trojan. Software may be able to tell you which trojan it is, but who cares? In practice, there's no reason to use recognition software unless an organizational policy requires it. Windows malware is so widespread that you should assume it's in every email attachment until proven otherwise. Nevertheless, ClamXav or a similar product from the App Store may serve a purpose if it satisfies an ill-informed network administrator who says you must run some kind of AV application. It's free and it won't handicap the system.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user, you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither can you assume that you will always be safe from exploitation, no matter what you do. Navigating the Internet is like walking the streets of a big city. It's as safe or as dangerous as you choose to make it. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

  • [svn:osmf:] 14444: DVR, CR feedback: change dvrTrait and timeTrait properties on NetStreamLoadTrait into a generic getTrait /setTrait scheme.

    Revision: 14444
    Revision: 14444
    Author:   [email protected]
    Date:     2010-02-26 00:38:24 -0800 (Fri, 26 Feb 2010)
    Log Message:
    DVR, CR feedback: change dvrTrait and timeTrait properties on NetStreamLoadTrait into a generic getTrait/setTrait scheme. Update VideoElement finishLoad method accordingly. Remove createDVRTrait and createTimeTrait methods from NetLoader, and add a 'processFinishLoading' stub (@private), and have DVRCastNetLoader override it in order to add the custom DVRTrait and TimeTrait.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/VideoElement.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamLoadTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastNetLoader.as

  • [svn:osmf:] 13988: PARB feedback: change mediaWidth and mediaHeight properties on layout renderer related classes to measuredWidth , and measuredHeight.

    Revision: 13988
    Revision: 13988
    Author:   [email protected]
    Date:     2010-02-05 00:24:52 -0800 (Fri, 05 Feb 2010)
    Log Message:
    PARB feedback: change mediaWidth and mediaHeight properties on layout renderer related classes to measuredWidth, and measuredHeight.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/composition/CompositeDisplayObjectTrait.as
        osmf/trunk/framework/OSMF/org/osmf/containers/MediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/display/MediaContainerGroup.as
        osmf/trunk/framework/OSMF/org/osmf/layout/DefaultLayoutRenderer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/ILayoutTarget.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutRenderer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutTargetSprite.as
        osmf/trunk/framework/OSMF/org/osmf/layout/MediaElementLayoutTarget.as
        osmf/trunk/framework/OSMFTest/org/osmf/display/TestMediaContainerGroup.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestDefaultLayoutRenderer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestLayoutRenderer.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TestMediaElementLayoutTarget.as
        osmf/trunk/framework/OSMFTest/org/osmf/layout/TesterLayoutTargetSprite.as

    Hi Lucas, 
    We don't recommend making layout renderers for each item that needs to be laid out.  In fact you shouldn't be creating layout renderers at all (they are created automatically by the MediaContainer).  The best way to layout Media is to add LayoutMetadata to the MediaElements.  If you want to integrate layout into your controls, which aren't MediaElements, I wouldn't suggest you place them manually on the stage, and do you yourself.  If you absolutely need to use the OSMF layout system, I would recommend creating a MediaElement to wrap your controls, and then give the wrapper the layout metadata you need.   The easiest approach though, is to look at the OSMFPlayer example, which has a skinnable player.  You can specify image for every button in the player, as well as background color, etc....
    We will be releasing a white paper on the subject of layout in the coming weeks.   I'll be sure to include a section on laying out your player controls.
    Ryan O'Connell
    OSMF Engineering

  • How to create website on iweb and make it public, and tell me how to put a password on it.

    Hi, can you tell me how to create website on iweb and make it public, and tell me how to put a password on it, thanks.

    Find a webhosting company :
    http://www.google.jo/search?q=webhosting+jordan
    They will provide the instructions how to password protect a directory (=folder)?
    Until you find one, you can practice on your own computer :
    http://www.wyodor.net/Tutorials/iWebDemo/sFTP.html
    Here's a some tutorials :
    http://www.apple.com/findouthow/web/

  • Mixing public and private networks on the same switch

    Hello Everyone,
    I know this may get some security engineers in frenzy but wanted to know if there is a safe way to mix public and private networks on the same switch. 
    We have many remote offices that we want to add public wifi and a couple of other services that would be completely outside of our internal network.  Each office has a 3750 with plenty of open ports.  How can I safely create a vlan for public access on these switches which currently have our internal network on.  I have read that people are doing this to save on the cost of purchasing a dedicated switch.  Some people are using access lists and one person mentioned creating a private vlan for the public network.  I looked up private vlan and it seemed bit confusing.
    Is this recommended?  If not what would be the safest way to do this?
    Thanks Everyone

    Disclaimer
    The  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.
    Liability Disclaimer
    In  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.
    Posting
    How "safe" is relative.  If your running just one VLAN on a switch, that's would be the safest (basically the same as mixing traffic on the same wire - separation is done else where).
    If you multiple VLANs on a switch, then you need to determine how likely someone might figure out a way to breach the VLAN barriers.  (This isn't so easy on newer switches.)  If the VLAN isolation is breeched, then you need to examine what does that imply from a security perspective (for example can someone now inject or receive other VLAN traffic).
    For most purposes, I don't see mixing public and private VLANs, alone, on the same switch as much of a risk.  More of a concern is what can be reached on either VLAN and how well it's protected.

  • [svn:osmf:] 14871: Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/ height and position set.

    Revision: 14871
    Revision: 14871
    Author:   [email protected]
    Date:     2010-03-19 01:05:54 -0700 (Fri, 19 Mar 2010)
    Log Message:
    Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/height and position set.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutRenderer.as

    If you're just doing it in a back and forth or spiral fashion, you don't need to check whether a square's been filled in. You just go from a start point to an end point. Those points and the squares in between are determined by simple arithmetic.
    If you're doing it randomly, I wouldn't use the GUI elements themselves. I'd have, for example, and array of booleans that tells whether each square has been filled in.

  • Error: No public or protected classes found to document.

    Hello,
    I am currently going spare trying to get javadoc to document the code I have written. I have checked the Java code given the information on the website and the comments are correct and complete for all methods. The command line I am using is:
    c:\j2sdk1.4.1_01\bin\javadoc.exe -d docs/ Population.javaAnd the makefile (bat file) is in the directory with the population.java file. The command line works with other files in the same directory, programmed and commented to the same standard. The error I get is:
    C:\Documents and Settings\ril\MYDOCU~1\PROGRA~1\JCreator\ILCSFrame>c:\j2sdk1.4.1_01\bin\javadoc.exe -d docs/ Population.java
    Loading source file ILCSFrame.java...
    Constructing Javadoc information...
    Standard Doclet version 1.4.1
    Generating docs/\constant-values.html...
    javadoc: No public or protected classes found to document.
    1 errorI have tried checking the documentation with the doccheck doclet with the following command line:
    c:\j2sdk1.4.1_01\bin\javadoc.exe -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath C:\j2sdk1.4.1_01\utils\doccheck1.2b1\lib Population.javaBut it throws the following error:
    C:\Documents and Settings\ril\MYDOCU~1\PROGRA~1\JCreator\ILCSFrame>c:\j2sdk1.4.1
    _01\bin\javadoc.exe -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath
    C:\j2sdk1.4.1_01\utils\doccheck1.2b1\lib\doccheck.jar Population.java
    Loading source file Population.java...
    Constructing Javadoc information...
    javadoc: In doclet class com.sun.tools.doclets.doccheck.DocCheck,  method start
    has thrown an exception java.lang.reflect.InvocationTargetException
    java.lang.NoSuchMethodError: com.sun.tools.doclets.HtmlWriter.<init>(Ljava/lang/
    String;Ljava/lang/String;)V
            at com.sun.tools.doclets.doccheck.HtmlWriterExt.<init>(HtmlWriterExt.jav
    a:16)
            at com.sun.tools.doclets.doccheck.DocCheck.makeWriter(DocCheck.java:1407
            at com.sun.tools.doclets.doccheck.DocCheck.printStatisticsPage(DocCheck.
    java:456)
            at com.sun.tools.doclets.doccheck.DocCheck.printErrorPages(DocCheck.java
    :433)
            at com.sun.tools.doclets.doccheck.DocCheck.startGeneration(DocCheck.java
    :364)
            at com.sun.tools.doclets.doccheck.DocCheck.start(DocCheck.java:337)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
            at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:92)
            at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:301)
            at com.sun.tools.javadoc.Start.begin(Start.java:120)
            at com.sun.tools.javadoc.Main.execute(Main.java:41)
            at com.sun.tools.javadoc.Main.main(Main.java:31)
    1 errorIf I try running doccheck (without doclet) on the whole directory (containing 6 java files), it will only pick up 3 of them (one including the SwingWorker java file). Any help greatly appreciated.

    "No public or protected classes found to document" means
    that the class Population.java is not in the current directory.
    Without trying to insult your programming ability, these things
    come to mind:
    - Omit the slash at the end of "-d docs/" This causes the
    message "Generating docs/\constant-values.html.
    I'm not sure why the bat file uses a forward slash on
    a Windows system.
    - Make sure you cd to the directory containing the bat file before
    running it.
    - Java is case-sensitive (I notice you spelled the filename
    both uppercase and lowercase.) Make sure the file name,
    the class name in the class, and the class name in the bat
    file have the same case.
    As far as doccheck not running, we have not yet released the
    version that runs on 1.4.x. Please write to "doccheck-feedback"
    with "@sun.com" for more info. (I've broken up the email address
    so text crawlers won't get it.)
    -Doug Kramer
    Javadoc team

  • JPA: looking for pattern to prevent edit of ownerId and created properties

    My business and persistence tier architecture ideally should prevent editing of the ownerId, created, modified and version properties which are common to all my entities.
    The ownerId is perhaps obviously the identifier of the user or group in a multi-user app who own the item of data and have rights to edit it. 'created' is the creation data when it was first written to the DB.
    I can't set the 'modified' or 'version' fields to updateable="false" because they do need updating.
    I don't want to use stored procedures, or interfaces for the entities. I'd like to keep it generic.
    Do I have any other choice than to execute a native sql query to fetch the unchanged values?
    Thanks
    Adam

    So I'll have to make 'created' and 'ownerId' parameters on the constructor with no setters and just hope I never have the need to set them.
    But with 'modified' and 'version', the properties need updating. JPA needs to access the version field - does JPA do this by reflection? I'll run some experiments to see what happens.
    With a setter on 'modified', I still want to protect it against change by anyone else. Well of course, I'm being a bit obstinate, if the 'modified' property is set every time by a listener, then it doesn't matter whether it was changed beforehand outside the persistence layer: that change will just get overwritten by the listener. Hmm.

  • How do I Enable Crud and other properties in ListViewWebPart programmatically

    In SharePoint (SharePoint Designer) 2010, to use a custom list in different sites, we used the resource to export the to site gallery. So the list became a list web part where I could use all the available resource list created on the
    same site (examples: list settings, crud, views ...)
    We need to provide the same functionality in 2013 programmatically for the user. We try ListViewWebPart class to use, but the resources of crud on the list were not available.
    I Would like to how do I enable crud and other properties in ListViewWebPart or if there is another class that does it.
    Thanks in advance

    Try below:
    http://www.dotnetcodesg.com/Article/UploadFile/2/216/CRUD%20%28Create%20Read%20Update%20Delete%29%20Operations%20on%20a%20SharePoint%20List%20programmatically.aspx
    usingSystem;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Microsoft.SharePoint;
    namespace SharePoint__CRUD_Operations_on_a_List
    {   publicpartialclass Form1
    : Form   {
         public
    Form1()     {
              InitializeComponent();
        private voidForm1_Load(object
    sender, EventArgs e)
             BindAllRecords();
        private void BindAllRecords()
              using
    (SPSite site = newSPSite("http://localhost:7000"))
                    using
    (SPWeb web = site.OpenWeb())                 {
    SPList list = web.Lists["MyContacts"];
    SPListItemCollection items
    = list.Items; cmbItemId.DataSource = items.GetDataTable();
    cmbItemId.DisplayMember =
    "Id";
    cmbItemId.ValueMember =
    "Id";
    private void btnAllItems_Click(object
    sender, EventArgs e)         {
    GetAllItems(0);
    private void btn_Search_Click(object
    sender, EventArgs e)
    using (SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 
    SPList list
    = web.Lists["MyContacts"]; SPListItemCollection items
    = list.Items; foreach(SPListItemlistItemin
    items)                 {
    if (listItem["ID"].ToString()
    == cmbItemId.SelectedValue.ToString())                         {
    textBoxTitle.Text = (string)listItem["Title"].ToString();
    textBoxName.Text = listItem["Name"].ToString();
    textBoxAddress.Text = listItem["Address"].ToString();
    textBoxContactNo.Text = listItem["ContactNo"].ToString();
    textBoxCountry.Text = listItem["Country"].ToString();
    lblErrorMsg.Text =
    "Search Result";
    lblErrorMsg.Visible =
    true;
    DataView dv = items.GetDataTable().DefaultView;
    dv.RowFilter="ID="
    + cmbItemId.SelectedValue; dataGridViewAllItems.DataSource = dv;
    private void btn_AddItem_Click(object
    sender, EventArgs e)
    using (SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 {
    web.AllowUnsafeUpdates =
    true;
    SPList list
    = web.Lists["MyContacts"]; SPListItem Item
    = list.Items.Add(); Item["Title"]
    = textBoxTitle.Text; Item["Name"]
    = textBoxName.Text; Item["Address"]
    = textBoxAddress.Text; Item["ContactNo"]
    = textBoxContactNo.Text; Item["Country"]
    = textBoxCountry.Text; textBoxTitle.Text =
    textBoxName.Text =
    textBoxAddress.Text =
    textBoxContactNo.Text =
    textBoxCountry.Text =
     Item.Update();
    web.AllowUnsafeUpdates =
    false;
    lblErrorMsg.Text =
    "Item Added Successfully...";
    lblErrorMsg.Visible =
    false;
    GetAllItems(0);
    private void GetAllItems(
    intItemID)
    using(SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 {
    SPList list
    = web.Lists["MyContacts"]; SPListItemCollection items
    = list.Items; if (ItemID == 0)
    dataGridViewAllItems.DataSource = items.GetDataTable();
    else
    DataView dv = items.GetDataTable().DefaultView;
    dv.RowFilter =
    "ID=" + cmbItemId.SelectedValue;
    dataGridViewAllItems.DataSource = dv;
        private void btn_UpdateItem_Click(object
    sender, EventArgs e)     {
                using (SPSite
    site = newSPSite("http://localhost:7000"))
                       using
    (SPWeb web = site.OpenWeb())                    {
    web.AllowUnsafeUpdates = true;
    SPList list
    = web.Lists["MyContacts"];                          SPListItem
    Item = list.GetItemById(Convert.ToInt32(cmbItemId.SelectedValue));
    Item["Title"]
    = textBoxTitle.Text; Item["Name"]
    = textBoxName.Text; Item["Address"]
    = textBoxAddress.Text; Item["ContactNo"]
    = textBoxContactNo.Text; Item["Country"]
    = textBoxCountry.Text; textBoxTitle.Text =
    textBoxName.Text =
    textBoxAddress.Text =
    textBoxContactNo.Text =
    textBoxCountry.Text =
    Item.Update();
    web.AllowUnsafeUpdates =
    false;
    lblErrorMsg.Text =
    "Item Updated Successfully...";
    lblErrorMsg.Visible =
    true;
    GetAllItems(Convert.ToInt32(cmbItemId.SelectedValue));
           private void btnDeleteItem_Click(object
    sender, EventArgs e)        {
                using
    (SPSite site = newSPSite("http://localhost:7000"))
                      using
    (SPWeb web = site.OpenWeb())                   {
    web.AllowUnsafeUpdates =
    true;
                            SPList
    list = web.Lists["MyContacts"];                         SPListItem
    Item = list.GetItemById(Convert.ToInt32(cmbItemId.SelectedValue));
                            Item.Delete();
    web.AllowUnsafeUpdates = false;
    lblErrorMsg.Text =
    "Item Deleted Successfully...";
    lblErrorMsg.Visible =
    true;
    BindAllRecords();
    GetAllItems(0);
    http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/05/05/walkthrough-of-enabling-crud-for-sharepoint-2010-external-lists-using-visual-studio-2010.aspx
    If this helped you resolve your issue, please mark it Answered

  • "View Properties" and "Edit Properties" extremely slow

    Hello,
    I have a weird issue on a new Sharepoint 2013-installation. It's currently configured with one web application and one site collection. It uses some customization, but within "normal limits", mainly metadata- and search-related. The "core"
    is one document library with around 30.000 items. The customization offers a GUI-filter-system where you can select through the metadata which kind of document you want to open, so there's never more than about 1000 documents in one view. In some views it's
    less than 10 documents.
    Now, when I try to "View Properties" of a document, it takes the browser around 30 seconds to open the dialogbox. Same with "Edit Properties". Everything else (like version history) opens in the expected amount of time and everything
    else on the system also works well regarding performance.
    In the IIS-logs I can see that opening the DispForm.aspx of that item takes about 30 seconds. In the Sharepoint-Logs I can see that the Sharepoint works on the issue, but (what I have never seen before) between lines there are sometimes "pauses"
    of 3 seconds, where the system just isn't doing anything.
    CPU and RAM-utilization are normal and not spiking. The system is well equipped with CPU and RAM (more than 50% are unused during my tests).
    My question is: Where is the bottleneck? Why is THIS operation taking so long and what can I do to analyze it? Anyone has any ideas?
    Many thanks, Aaron

    Hi Aaron,
    For this issue, I recommend to use Network in F12 tool in Internet Explorer(IE) to capture the requests sent after clicking the View Properties and Edit Properties in the ribbon.
    Check the requests and find which request takes much long time and then go the detailed view of that request to see what does that request need to load.
    Sometimes, big pictures, JavaScript codes, etc may cause this issue.
    Please also check if this issue only occurs with the view item form and edit item form.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • How do I get the contents of the "note" field to display on the event in day and week modes?

    I am a student and I take the reading and exam schedules from my class syllabi and put them in iCal so I only have to go to one place to see what assignments are due. I put the class name in the event name field, the classroom number in the location

  • Posting Invioce with payment reference ( KIDNO) using INVOIC01 idoc

    Hi SAP Gurus, We have a process to post invoices in the system using IDoc basic type Invoic01. The requirement is that vendor will pass the payment reference in the XML message and we need to populate this payment reference value in the payment refer

  • Problem in sort for factory method ALV

    Hi, I am using CL_SALV_TABLE for displaying a ALV with the help of factory method. Here I am using sort. If I put sort on integer field one exception is coming. Subtotals cannot be calculated on aggregatable col. Can anyone solve my problem....thanks

  • Virtual Machine Issues

    Hello, I just completed my JavaScript Intro course and am boning up for an upcoming JAVA course. I am a total beginner, so bear with me. I loaded JDK 1.3.1, including the runtime environment, and downloaded and successfully installed the Virtual Mach

  • Encore CS4 Hangs on importing audio files

    My newly upgraded RTX2 PC immediately hangs as soon as I try and import a WAVE or MP3 audio file into Encore. I can import other types of file into Encore. My OS is windows 7 Professional and I have the latest versions of Encore and Matrox Tools.