public class Symbol
extends java.lang.Object
Library classifierLibrary, Class Symbol
Copyright by Klaus Hufschlag 2004,2005,2006
This file is part of the Generic Classifier Library. The Generic Classifier Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Generic Classifier Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the Generic Classifier Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Constructor and Description |
---|
Symbol(java.lang.String Name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addMember(Language m,
Symbol s)
Makes a given Symbol a subordinate of the instance in a given language.
|
void |
addMember(Language m,
SymbolSet s)
Makes a given Set of Symbols a subordinate to the instance in a given
language.
|
void |
addMember(Symbol s)
Makes a given Symbol a subordinate of the instance in the global /
default language.
|
void |
addMember(SymbolSet s)
Makes a given Set of Symbols a subordinate to the instance in the global /
default language.
|
static java.lang.String |
autoName()
Generates a valid proposal for a non existing Symbol name.
|
static Symbol |
byName(java.lang.String name)
Returns any Symbol-Instance given his name.
|
void |
debug_out() |
static Language |
getAllSymbols()
Returns a Language of all existing Symbols (i.e. returns the global /
default Language).
|
java.lang.String |
getName() |
boolean |
hasMembers()
Checks the existence of subordinate Symbols in the global / default
Language.
|
boolean |
hasMembers(Language s)
Checks the existence of subordinate Symbols in a given Language.
|
void |
removeGlobal() |
boolean |
subsumes(Language m,
Symbol s)
Checks, wether a given Symbol is a subordinate to the instance in a given
Language.
|
boolean |
subsumes(Symbol s)
Checks, wether a given Symbol is a subordinate to the instance in the
global / default Language.
|
public Symbol(java.lang.String Name)
Name
- Name of the Symbol to createpublic static Symbol byName(java.lang.String name)
name
- Name of Symbolpublic static java.lang.String autoName()
public java.lang.String getName()
public void debug_out()
public boolean hasMembers(Language s)
s
- Language the check refers to.public boolean hasMembers()
public void addMember(Language m, Symbol s)
m
- Language the relation should be defined fors
- Symbol to become subordinatepublic void addMember(Symbol s)
s
- Symbol to become subordinatepublic void addMember(Language m, SymbolSet s)
m
- Language the relation should be defined fors
- SymbolSet of Symbols to become subordinatepublic void addMember(SymbolSet s)
s
- SymbolSet of Symbols to become subordinatepublic boolean subsumes(Language m, Symbol s)
m
- Language in which the relation should be checked.s
- Symbol which is to be checked for being subordinatepublic boolean subsumes(Symbol s)
s
- Symbol which is to be checked for being subordinatepublic static Language getAllSymbols()
public void removeGlobal()