|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--rup.soif.SOIF2
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 |
protected java.lang.String schemaName
protected java.net.URL URL
public AVPairs list
protected boolean valid
| Constructor Detail |
public SOIF2()
public SOIF2(java.lang.String name)
| Method Detail |
public void addAVPairs(java.lang.String att,
java.lang.String val)
att - the attributeval - the value
public boolean setValue(java.lang.String s,
java.lang.String v)
s - the attribute
public boolean setValue(java.lang.String s,
int n,
java.lang.String v)
s - the attributen - the indicepublic java.lang.String getValue(java.lang.String s)
s - the attribute
public java.lang.String getValue(java.lang.String s,
int n)
s - the attributen - the indicepublic java.lang.String[] getValues(java.lang.String s)
s - the attributepublic java.lang.String[] getAttributes()
public int attributeValueCount(java.lang.String s)
s - the attributepublic AVPairs getAVPairs()
public AVPairs getAVPairsByMV(int mv)
mv - multivalue valuepublic AVPairs getAVPairsByAttribute(java.lang.String s)
s - attributepublic AVPairs unduplicateValues()
public int getMaxAttributeIndice()
public AVPairs getSingleValuePairs()
public java.lang.String getSchemaName()
public void setSchemaName(java.lang.String name)
public java.net.URL getURL()
public void setURL(java.net.URL url)
public int getAttributeCount()
public java.lang.String toSOIFString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||