Java Doc for SOIF.java in  » Portal » Open-Portal » soif » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » soif 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   soif.SOIF

SOIF
public class SOIF implements Cloneable(Code)
SOIF handling class.

The SOIF class is used as a list, where each SOIF statement gets it's own node. The first node is a header node which has the full SOIF text in it, the successor nodes have the variable but don't use it. The SOIF list is created by creating the initial SOIF instance and passing the SOIF string to it. The full SOIF list is then created by running the parser methods which iteratively create new SOIF instances (this was originally done in a more elegant recursive fashion, but that was a performance hog (passing the string).



Field Summary
protected  StringURL
     The SOIF URL.
public  AVPairslist
     The attribute value pairs for this SOIF.
public  SOIFnext
     Next SOIF object on list.
protected  StringschemaName
     The SOIF schemaName.
protected  booleanvalid
     Whether this is a valid SOIF object.

Constructor Summary
public  SOIF()
     Constructor.
public  SOIF(String schemaName, String URL)
     Constructor.

Method Summary
public  voidaddAVPairs(String att, String val)
     Adds a new AVPair to this list.
public  intattributeValueCount(String s)
     Get number of values for an attribute, e.g.
public  intcount()
     Number of SOIF nodes in a list.
public  AVPairsgetAVPairs()
     Get a copy of all the AVPairs.
public  AVPairsgetAVPairsByAttribute(String s)
     Clone the AVPairs w/ the specified attribute.
public  AVPairsgetAVPairsByMV(int mv)
     Clone the AVPairs w/ the specified MV.
public  intgetAttributeCount()
     Get the number of unique attributes with this SOIF.
public  String[]getAttributes()
     Return a unique list of attributes w/out multi value, e.g.
public  intgetMaxAttributeIndex()
     Get the max attribute index (multivalue) from AVPairs list.
public  StringgetSchemaName()
     Return the schemaName.
public  AVPairsgetSingleValuePairs()
     Return the pairs of the list that are not multivalue.
public  StringgetURL()
     Return the URL.
public  StringgetValue(String s)
     Find a value by non-multivalue attribute.
public  StringgetValue(String s, int n)
     Find a value by attribute and multivalue index.
public  String[]getValues(String s)
     Find a values by attribute.
public  booleanisValid()
     Whether a SOIF node is valid.
public  booleansetValue(String s, String v)
     Set a value by non-multivalue attribute.
public  booleansetValue(String s, int n, String v)
     Set a value by attribute and multivalue index.
public static  StringtoSOIF(String schemaName, String URL, String a, String v)
     Print out SOIF.
public  StringtoSOIFList()
     Return entire SOIF list as a string.
public  StringtoSOIFString()
     Return a single SOIF as a string.
public  StringtoString()
     Return a single SOIF as a string.
public  StringtoStringList()
     Return entire SOIF list as a string.
public  AVPairsunduplicateValues()
     Unduplicate values on the AVPairs list.

Field Detail
URL
protected String URL(Code)
The SOIF URL.



list
public AVPairs list(Code)
The attribute value pairs for this SOIF.



next
public SOIF next(Code)
Next SOIF object on list.



schemaName
protected String schemaName(Code)
The SOIF schemaName.



valid
protected boolean valid(Code)
Whether this is a valid SOIF object.




Constructor Detail
SOIF
public SOIF()(Code)
Constructor.



SOIF
public SOIF(String schemaName, String URL)(Code)
Constructor.




Method Detail
addAVPairs
public void addAVPairs(String att, String val) throws Exception(Code)
Adds a new AVPair to this list.
Parameters:
  att - the attribute
Parameters:
  val - the value



attributeValueCount
public int attributeValueCount(String s)(Code)
Get number of values for an attribute, e.g. if Bob has Bob-1 and Bob-2, the answer is 2. Ignores case of attribute name.
Parameters:
  s - the attribute



count
public int count()(Code)
Number of SOIF nodes in a list.



getAVPairs
public AVPairs getAVPairs()(Code)
Get a copy of all the AVPairs.



getAVPairsByAttribute
public AVPairs getAVPairsByAttribute(String s)(Code)
Clone the AVPairs w/ the specified attribute.
Parameters:
  s - attribute



getAVPairsByMV
public AVPairs getAVPairsByMV(int mv)(Code)
Clone the AVPairs w/ the specified MV.
Parameters:
  mv - multivalue value



getAttributeCount
public int getAttributeCount()(Code)
Get the number of unique attributes with this SOIF.



getAttributes
public String[] getAttributes()(Code)
Return a unique list of attributes w/out multi value, e.g. for Bob-1, Bob-2, Jim-1, return Bob, Jim.



getMaxAttributeIndex
public int getMaxAttributeIndex()(Code)
Get the max attribute index (multivalue) from AVPairs list.



getSchemaName
public String getSchemaName()(Code)
Return the schemaName.



getSingleValuePairs
public AVPairs getSingleValuePairs()(Code)
Return the pairs of the list that are not multivalue.



getURL
public String getURL()(Code)
Return the URL.



getValue
public String getValue(String s)(Code)
Find a value by non-multivalue attribute. Ignores case of attribute name.
Parameters:
  s - the attribute



getValue
public String getValue(String s, int n)(Code)
Find a value by attribute and multivalue index. Ignores case of attribute name.
Parameters:
  s - the attribute
Parameters:
  n - the index



getValues
public String[] getValues(String s)(Code)
Find a values by attribute. Return an array of strings for multiple values for an attribute, e.g., for Bob, return values for Bob-1 and Bob-2. Ignores case of attribute name.
Parameters:
  s - the attribute



isValid
public boolean isValid()(Code)
Whether a SOIF node is valid.



setValue
public boolean setValue(String s, String v)(Code)
Set a value by non-multivalue attribute. Ignores case of attribute name.
Parameters:
  s - the attribute



setValue
public boolean setValue(String s, int n, String v)(Code)
Set a value by attribute and multivalue index. Ignores case of attribute name.
Parameters:
  s - the attribute
Parameters:
  n - the index



toSOIF
public static String toSOIF(String schemaName, String URL, String a, String v)(Code)
Print out SOIF.
Parameters:
  schemaName - schema name
Parameters:
  URL - URL
Parameters:
  a - string array of attributes
Parameters:
  v - string array of values
exception:
  IllegalArgumentException - If att an val arrays not same size



toSOIFList
public String toSOIFList()(Code)
Return entire SOIF list as a string. SOIF.toStringList()



toSOIFString
public String toSOIFString()(Code)
Return a single SOIF as a string. SOIF.toString()



toString
public String toString()(Code)
Return a single SOIF as a string.



toStringList
public String toStringList()(Code)
Return entire SOIF list as a string.



unduplicateValues
public AVPairs unduplicateValues()(Code)
Unduplicate values on the AVPairs list.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.