Results 1 to 3 of 3
  1. #1
    smhjafari is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Java validation Code

    Hi

    I want to write a java validation code for my XML file (it is an agent config)

    can you help me in this code

    my Xml file is here :

    <?xml version="1.0" encoding="UTF-8"?>
    <setting moduleName="StorageAndCollection" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///E:/phase%203/console%20setting/settingXSD.xsd">
    <part partName="General">
    <input inputType="text" inputName="AgentID" inputLabel="Agent ID" dataType="Int"/>
    <input inputType="text" inputName="AgentName" inputLabel="Agent Name"/>
    <input inputType="text" inputName="AgentDescription" inputLabel="Agent Description"/>
    <input inputType="ip" inputName="AgentIPAddress" inputLabel="Agent IP Address"/>
    <input inputType="text" inputName="PortAddress" inputLabel="Port Address" dataType="Int"/>
    </part>
    <part partName="plugins">
    <section sectionName="">
    <input inputType="text" inputName="RawLogFilePath" inputLabel="Path of raw logs file"/>
    <input inputType="text" inputName="PluginID" inputLabel="Plugin ID"/>
    </section>
    </part>
    <part partName="Collector">
    <checkbox checkboxLabel="Collector" checkboxName="Collector">
    <option optionValue="Rsyslog" optionLabel="Rsyslog" isSelect="false"/>
    <option optionValue="Snmptrapd" optionLabel="Snmptrapd" isSelect="false"/>
    </checkbox>
    <input inputType="ip" inputName="IPAddress" inputLabel="IP Address"/>
    <section sectionName="SSLConfiguration">
    <input inputType="text" inputName="Key" inputLabel="SSL Key "/>
    <input inputType="text" inputName="Certificate" inputLabel="SSL Certificate"/>
    <input inputType="text" inputName="Ca_certs" inputLabel="certification authority certificates"/>
    </section>
    </part>
    </setting>

  2. #2
    smhjafari is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default Re: Java validation Code

    Can anyone help me in IP Or Port Validation whit java?


    Quote Originally Posted by smhjafari View Post
    Hi

    I want to write a java validation code for my XML file (it is an agent config)

    can you help me in this code

    my Xml file is here :

    <?xml version="1.0" encoding="UTF-8"?>
    <setting moduleName="StorageAndCollection" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///E:/phase%203/console%20setting/settingXSD.xsd">
    <part partName="General">
    <input inputType="text" inputName="AgentID" inputLabel="Agent ID" dataType="Int"/>
    <input inputType="text" inputName="AgentName" inputLabel="Agent Name"/>
    <input inputType="text" inputName="AgentDescription" inputLabel="Agent Description"/>
    <input inputType="ip" inputName="AgentIPAddress" inputLabel="Agent IP Address"/>
    <input inputType="text" inputName="PortAddress" inputLabel="Port Address" dataType="Int"/>
    </part>
    <part partName="plugins">
    <section sectionName="">
    <input inputType="text" inputName="RawLogFilePath" inputLabel="Path of raw logs file"/>
    <input inputType="text" inputName="PluginID" inputLabel="Plugin ID"/>
    </section>
    </part>
    <part partName="Collector">
    <checkbox checkboxLabel="Collector" checkboxName="Collector">
    <option optionValue="Rsyslog" optionLabel="Rsyslog" isSelect="false"/>
    <option optionValue="Snmptrapd" optionLabel="Snmptrapd" isSelect="false"/>
    </checkbox>
    <input inputType="ip" inputName="IPAddress" inputLabel="IP Address"/>
    <section sectionName="SSLConfiguration">
    <input inputType="text" inputName="Key" inputLabel="SSL Key "/>
    <input inputType="text" inputName="Certificate" inputLabel="SSL Certificate"/>
    <input inputType="text" inputName="Ca_certs" inputLabel="certification authority certificates"/>
    </section>
    </part>
    </setting>

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Java validation Code

    Moved here from a staff-only section of the forum.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Java Validation
    By Rahim2312 in forum New To Java
    Replies: 6
    Last Post: 05-07-2012, 08:06 PM
  2. Custom code validation
    By shivam0101 in forum Advanced Java
    Replies: 1
    Last Post: 01-13-2012, 01:40 PM
  3. Help!! Validation for java
    By peppy99 in forum Advanced Java
    Replies: 1
    Last Post: 01-09-2011, 12:55 PM
  4. Help!! Validation for java
    By peppy99 in forum New To Java
    Replies: 14
    Last Post: 01-07-2011, 10:33 AM
  5. java validation?
    By lockmac in forum New To Java
    Replies: 3
    Last Post: 08-14-2007, 04:34 PM

Tags for this Thread

Posting Permissions

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