Class Directory

java.lang.Object
org.scictrl.csshell.directory.Directory

public class Directory extends Object

Directory class.

Author:
igor@scictrl.com
  • Constructor Details

    • Directory

      public Directory()

      Constructor for Directory.

  • Method Details

    • main

      public static void main(String[] args)

      main.

      Parameters:
      args - an array of String objects
    • addRecord

      public void addRecord(Record r)

      addRecord.

      Parameters:
      r - a Record object
    • resolveAlias

      public String resolveAlias(String alias)
      If record provides name and alias, then this method will convert one to the other.
      Parameters:
      alias - the name or alias to be converted
      Returns:
      valid name or alias
    • lookupRecord

      public Record lookupRecord(String name)

      lookupRecord.

      Parameters:
      name - a String object
      Returns:
      a Record object
    • isDeprecated

      public boolean isDeprecated(String name)

      isDeprecated.

      Parameters:
      name - a String object
      Returns:
      a boolean
    • size

      public int size()

      size.

      Returns:
      a int
    • toString

      public String toString()
      Overrides:
      toString in class Object