FileDocCategorySizeDatePackage
SymTabEntry.javaAPI DocApache Axis 1.44785Sat Apr 22 18:57:28 BST 2006org.apache.axis.wsdl.symbolTable

SymTabEntry

public abstract class SymTabEntry extends Object
SymTabEntry is the base class for all symbol table entries. It contains four things: - a QName - space for a Writer-specific name (for example, in Wsdl2java, this will be the Java name) - isReferenced flag indicating whether this entry is referenced by other entries - dynamicVars; a mechanism for Writers to add additional context information onto entries.

Fields Summary
protected QName
qname
Field qname
protected String
name
Field name
private boolean
isReferenced
Field isReferenced
private HashMap
dynamicVars
Field dynamicVars
Constructors Summary
protected SymTabEntry(QName qname)
Construct a symbol table entry with the given QName.

param
qname


                      
       
        this.qname = qname;
    
Methods Summary
public java.lang.ObjectgetDynamicVar(java.lang.Object key)
There may be information that does not exist in WSDL4J/DOM structures and does not exist in our additional structures, but that Writer implementation will need. This information is most likely context-relative, so the DynamicVar map is provided for the Writers to store and retrieve their particular information.

param
key
return

        return dynamicVars.get(key);
    
public java.lang.StringgetName()
Get the name of this entry. The name is Writer-implementation-dependent. For example, in Wsdl2java, this will become the Java name.

return

        return name;
    
public final javax.xml.namespace.QNamegetQName()
Get the QName of this entry.

return

        return qname;
    
public final booleanisReferenced()
Is this entry referenced by any other entry in the symbol table?

return

        return isReferenced;
    
public voidsetDynamicVar(java.lang.Object key, java.lang.Object value)
Method setDynamicVar

param
key
param
value

        dynamicVars.put(key, value);
    
public final voidsetIsReferenced(boolean isReferenced)
Set the isReferenced variable, default value is true.

param
isReferenced

        this.isReferenced = isReferenced;
    
public voidsetName(java.lang.String name)
Set the name of this entry. This method is not called by the framework, it is only called by the Writer implementation.

param
name

        this.name = name;
    
protected java.lang.StringtoString(java.lang.String indent)
Collate the info in this object in string form with indentation.

param
indent
return


        String string = indent + "QName:         " + qname + '\n" + indent
                + "name:          " + name + '\n" + indent
                + "isReferenced?  " + isReferenced + '\n";
        String prefix = indent + "dynamicVars:   ";
        Iterator entries = dynamicVars.entrySet().iterator();

        while (entries.hasNext()) {
            Map.Entry entry = (Map.Entry) entries.next();
            Object key = entry.getKey();

            string += prefix + key + " = " + entry.getValue() + '\n";
            prefix = indent + "               ";
        }

        return string;
    
public java.lang.StringtoString()
Collate the info in this object in string form.

return

        return toString("");