|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsav.z.VariableExtension
sav.z.BaseExtension
Methods extension to the Base class for advanced developers.
Base.be()
Method Summary | |
java.lang.String[] |
attrArray2(java.lang.String obj,
java.lang.String attribute,
int nh)
Retrieves nh +2 size array of attribute values
for all the zclass members. |
java.lang.String |
attrType(java.lang.String zclass,
java.lang.String attribute)
Returns attribute type of zclass .
|
int |
attrTypeN(java.lang.String zclass,
java.lang.String attribute)
Returns the type notation corresponding to zclass
attribute . |
int[] |
attrTypeN(java.lang.String zclass,
java.lang.String[] attributes)
Returns the type notations corresponding to zclass
attributes . |
java.lang.String[] |
attrTypes(java.lang.String zclass,
java.lang.String[] attributes)
Returns the types corresponding zclass
attributes . |
java.lang.String |
backN(java.lang.String zclass,
java.lang.String value,
int notation)
Returns a back value before the value in
zclass Zigzag class. |
java.lang.String[] |
classAttrArray(java.lang.String zclass,
java.lang.String attribute)
Retrieves array of attribute values for all the
zclass members. |
java.lang.String[] |
classAttrArray(java.lang.String zclass,
java.lang.String attribute,
boolean self)
Retrieves array of attribute values for all the
zclass members including the zclass object
if the self is true. |
java.util.Vector |
denotations(java.lang.String zclass)
Obtains the Vector values that have DENOTATION notation category
inside zclass . |
java.util.Vector |
designations(java.lang.String zclass)
Obtains the Vector values that have DESIGNATION notation category
inside of zclass . |
java.lang.String |
firstN(java.lang.String zclass,
int notation)
Returns first value of the notation type
inside zclass . |
boolean |
hasNextN(java.lang.String zclass,
java.lang.String value,
int notation)
Tests whether are value of the notation
after value type
inside specified zclass Zigzag class. |
boolean |
hasNotation(java.lang.String zclass,
int notation)
Tests whether value of the notation type is
inside specified zclass Zigzag class.
|
java.lang.String |
lastN(java.lang.String zclass,
int notation)
Returns last value of the notation type
inside the zclass Zigzag class. |
java.lang.String[] |
nextArrayN(java.lang.String zclass,
java.lang.String value,
int size,
int notation)
Returns next size array values of the notation type
after value inside zclass . |
java.lang.String |
nextN(java.lang.String zclass,
java.lang.String value,
int notation)
Returns next value of the notation type
after value inside zclass . |
java.util.Vector |
qsymbols(java.lang.String zclass)
Returns the Vector of first symbols the quoted values begin with, in zclass Zigzag class. |
void |
setAttrType(java.lang.String zclass,
java.lang.String attribute,
java.lang.String type)
Sets up the type to the attribute of
zclass . |
int |
size(java.lang.String zclass,
int de)
Determines the size of the values that have de as weither
DESIGNATION or DENOTATION
inside zclass . |
java.util.Vector |
symbols(java.lang.String zclass,
java.lang.String before)
Returns the Vector of symbols after before
the quoted values begin with, inside zclass . |
Methods inherited from class sav.z.VariableExtension |
backN, denotations, designations, firstN, hasNextN, hasNotation, lastN, nextArrayN, nextN, qsymbols, size, symbols |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean hasNotation(java.lang.String zclass, int notation) throws java.io.IOException
notation
type is
inside specified zclass
Zigzag class.
The notation
may be PN.SPECIFIC
,
PN.SIGN
, PN.QUOTE
,
PN.NUMBER
, PN.CAPITAL
,
PN.NATURAL
, PN.RUSSIAN_C
,
PN.RUSSIAN_N
.
java.io.IOException
ClassNavigation.has(String, String)
public java.lang.String firstN(java.lang.String zclass, int notation) throws java.io.IOException
notation
type
inside zclass
.
java.io.IOException
ClassNavigation.first(String)
,
hasNotation(String, int)
public boolean hasNextN(java.lang.String zclass, java.lang.String value, int notation) throws java.io.IOException
notation
after value
type
inside specified zclass
Zigzag class.
java.io.IOException
firstN(String, int)
,
hasNotation(String, int)
public java.lang.String nextN(java.lang.String zclass, java.lang.String value, int notation) throws java.io.IOException
notation
type
after value
inside zclass
.
java.io.IOException
ClassNavigation.next(String, String)
,
firstN(String, int)
,
hasNotation(String, int)
public java.lang.String[] nextArrayN(java.lang.String zclass, java.lang.String value, int size, int notation) throws java.io.IOException
size
array values of the notation
type
after value
inside zclass
.
java.io.IOException
ClassNavigation.nextArray(String, String, int)
,
firstN(String, int)
,
hasNotation(String, int)
public java.lang.String lastN(java.lang.String zclass, int notation) throws java.io.IOException
notation
type
inside the zclass
Zigzag class.
java.io.IOException
ClassNavigation.last(String)
,
backN(String, String, int)
,
firstN(String, int)
,
hasNotation(String, int)
public java.lang.String backN(java.lang.String zclass, java.lang.String value, int notation) throws java.io.IOException
value
in
zclass
Zigzag class.
java.io.IOException
ClassNavigation.back(String, String)
,
lastN(String, int)
,
hasNotation(String, int)
public java.util.Vector qsymbols(java.lang.String zclass) throws java.io.IOException
zclass
Zigzag class.
java.io.IOException
symbols(String, String)
public java.util.Vector symbols(java.lang.String zclass, java.lang.String before) throws java.io.IOException
before
the quoted values begin with, inside zclass
.
java.io.IOException
qsymbols(String)
public int size(java.lang.String zclass, int de) throws java.io.IOException
de
as weither
DESIGNATION
or DENOTATION
inside zclass
.
java.io.IOException
denotations(String)
,
designations(String)
public java.util.Vector denotations(java.lang.String zclass) throws java.io.IOException
DENOTATION
notation category
inside zclass
.
java.io.IOException
VariableExtension.size(int)
,
designations(String)
public java.util.Vector designations(java.lang.String zclass) throws java.io.IOException
DESIGNATION
notation category
inside of zclass
.
java.io.IOException
VariableExtension.size(int)
,
denotations(String)
public java.lang.String[] classAttrArray(java.lang.String zclass, java.lang.String attribute) throws java.io.IOException
attribute
values for all the
zclass
members.
java.io.IOException
Base.attrArray(String, String)
public java.lang.String[] classAttrArray(java.lang.String zclass, java.lang.String attribute, boolean self) throws java.io.IOException
attribute
values for all the
zclass
members including the zclass
object
if the self
is true.
java.io.IOException
classAttrArray(String, String)
public java.lang.String[] attrArray2(java.lang.String obj, java.lang.String attribute, int nh) throws java.io.IOException
nh
+2 size array of attribute
values
for all the zclass
members. The array size may be less than
nh
+2. System seeks to give out first nh
(or less),
one middle and one last values.
java.io.IOException
Base.attrArray(String, String)
public java.lang.String attrType(java.lang.String zclass, java.lang.String attribute) throws java.io.IOException
attribute
type of zclass
.
For various applications the attribute types may be different.
For example, the Smans server, based on this Sav Zigzag DBMS, has
type symbol sequence consisting of 4 symbols, like NRQO, N--O, CRQ-.
Each symbol in each position has a specific meaning. Only the '-'
in any place signifies an uncertainty. Following is description
of the type symbols for each of 4 positions.
1 attribute value notation: N NumberPN.NUMBER
, C CharPN.QUOTE
, 2 necessary attribute: R Required, 3 used in query attribute: Q Quering, 4 output attribute: O Output.
java.io.IOException
setAttrType(String, String, String)
public void setAttrType(java.lang.String zclass, java.lang.String attribute, java.lang.String type) throws java.io.IOException
type
to the attribute
of
zclass
. Really, the type definition for Zigzag
data is not required as for the XML data. Neverheless,
type control is very useful for the the software application
during the input or output data. A developer can
set up herself types (or attribute constraint) via arbitrary symbol
sequence.
java.io.IOException
attrType(String, String)
,
attrTypes(String, String[])
public java.lang.String[] attrTypes(java.lang.String zclass, java.lang.String[] attributes) throws java.io.IOException
zclass
attributes
.
java.io.IOException
Base.header(String)
,
attrType(String, String)
public int attrTypeN(java.lang.String zclass, java.lang.String attribute) throws java.io.IOException
zclass
attribute
. This method tests only the N first symbol
of type name (or symbol sequence that signifies type).
If first symbol is N, the returned value is PN.NUMBER
,
in other case PN.QUOTE
. The source code of this very
simple method has following view:
public int attrN(String zclass, String attribute) throws IOException { String s = attrType(zclass, attribute); if (s.startsWith("N")) return PN.NUMBER; else return PN.QUOTE; }//attrN
java.io.IOException
attrType(String, String)
,
firstN(String, int)
public int[] attrTypeN(java.lang.String zclass, java.lang.String[] attributes) throws java.io.IOException
zclass
attributes
. This method tests only the N first symbol
of type name (or symbol sequence that signifies type).
If first symbol is N, the returned array value is PN.NUMBER
,
in other case PN.QUOTE
.
java.io.IOException
attrType(String, String)
,
attrTypeN(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |