|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
rup.soif
Class SOIF2
java.lang.Object | +--rup.soif.SOIF2
- public class SOIF2
- extends java.lang.Object
Structure de données représentant un objet Soif. J'ai récupéré une grande partie de l'objet SOIF de Netscape. Mais je pense qu'il arrivera un moment je reprogramerais la totalité pour qu'il corresponde à 100 % à mes besoins.
Field Summary | |
AVPairs |
list
The attribute value pairs for this SOIF. |
protected java.lang.String |
schemaName
The SOIF schemaName. |
protected java.net.URL |
URL
The SOIF URL. |
protected boolean |
valid
Whether this is a valid SOIF object. |
Constructor Summary | |
SOIF2()
Constructor. |
|
SOIF2(java.lang.String name)
|
Method Summary | |
void |
addAVPairs(java.lang.String att,
java.lang.String val)
Constructs a new AVPairs instance. |
int |
attributeValueCount(java.lang.String s)
Get number of values for an attribute, e.g. if Bob has Bob-1 and Bob-2, the answer is 2. |
int |
getAttributeCount()
Get the number of unique attributes with this SOIF. |
java.lang.String[] |
getAttributes()
Return a unique list of attributes w/out multi value, e.g. for Bob-1, Bob-2, Jim-1, return Bob, Jim. |
AVPairs |
getAVPairs()
Get a copy of all the AVPairs. |
AVPairs |
getAVPairsByAttribute(java.lang.String s)
Clone the AVPairs w/ the specified attribute. |
AVPairs |
getAVPairsByMV(int mv)
Clone the AVPairs w/ the specified MV. |
int |
getMaxAttributeIndice()
Get the max attribute indice (multivalue) from AVPairs list. |
java.lang.String |
getSchemaName()
Return the schemaName. |
AVPairs |
getSingleValuePairs()
Return the pairs of the list that are not multivalue. |
java.net.URL |
getURL()
|
java.lang.String |
getValue(java.lang.String s)
Find a value by nonmultivalue attribute. |
java.lang.String |
getValue(java.lang.String s,
int n)
Find a value by attribute and multivalue indice. |
java.lang.String[] |
getValues(java.lang.String s)
Find a values by attribute. |
void |
setSchemaName(java.lang.String name)
Set the schemaName. |
void |
setURL(java.net.URL url)
|
boolean |
setValue(java.lang.String s,
int n,
java.lang.String v)
Set a value by attribute and multivalue indice. |
boolean |
setValue(java.lang.String s,
java.lang.String v)
Set a value by nonmultivalue attribute. |
java.lang.String |
toSOIFString()
Return SOIF string for individual node. |
AVPairs |
unduplicateValues()
Unduplicate values on the AVPairs list. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
schemaName
protected java.lang.String schemaName
- The SOIF schemaName.
URL
protected java.net.URL URL
- The SOIF URL.
list
public AVPairs list
- The attribute value pairs for this SOIF.
valid
protected boolean valid
- Whether this is a valid SOIF object.
Constructor Detail |
SOIF2
public SOIF2()
- Constructor.
SOIF2
public SOIF2(java.lang.String name)
Method Detail |
addAVPairs
public void addAVPairs(java.lang.String att, java.lang.String val)
- Constructs a new AVPairs instance.
- Parameters:
att
- the attributeval
- the value
setValue
public boolean setValue(java.lang.String s, java.lang.String v)
- Set a value by nonmultivalue attribute.
Ignores case of attribute name.
- Parameters:
s
- the attribute
setValue
public boolean setValue(java.lang.String s, int n, java.lang.String v)
- Set a value by attribute and multivalue indice.
Ignores case of attribute name.
- Parameters:
s
- the attributen
- the indice
getValue
public java.lang.String getValue(java.lang.String s)
- Find a value by nonmultivalue attribute.
Ignores case of attribute name.
- Parameters:
s
- the attribute
getValue
public java.lang.String getValue(java.lang.String s, int n)
- Find a value by attribute and multivalue indice.
Ignores case of attribute name.
- Parameters:
s
- the attributen
- the indice
getValues
public java.lang.String[] getValues(java.lang.String s)
- 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
getAttributes
public java.lang.String[] getAttributes()
- Return a unique list of attributes w/out multi value, e.g. for Bob-1, Bob-2, Jim-1, return Bob, Jim.
attributeValueCount
public int attributeValueCount(java.lang.String s)
- 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
getAVPairs
public AVPairs getAVPairs()
- Get a copy of all the AVPairs.
getAVPairsByMV
public AVPairs getAVPairsByMV(int mv)
- Clone the AVPairs w/ the specified MV.
- Parameters:
mv
- multivalue value
getAVPairsByAttribute
public AVPairs getAVPairsByAttribute(java.lang.String s)
- Clone the AVPairs w/ the specified attribute.
- Parameters:
s
- attribute
unduplicateValues
public AVPairs unduplicateValues()
- Unduplicate values on the AVPairs list.
getMaxAttributeIndice
public int getMaxAttributeIndice()
- Get the max attribute indice (multivalue) from AVPairs list.
getSingleValuePairs
public AVPairs getSingleValuePairs()
- Return the pairs of the list that are not multivalue.
getSchemaName
public java.lang.String getSchemaName()
- Return the schemaName.
setSchemaName
public void setSchemaName(java.lang.String name)
- Set the schemaName.
getURL
public java.net.URL getURL()
- Returns:
- the URL.
setURL
public void setURL(java.net.URL url)
getAttributeCount
public int getAttributeCount()
- Get the number of unique attributes with this SOIF.
toSOIFString
public java.lang.String toSOIFString()
- Return SOIF string for individual node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |