Package coneforest.psylla.core
Class PsyNamespace
- java.lang.Object
-
- coneforest.psylla.core.PsyDict
-
- coneforest.psylla.core.PsyNamespace
-
- All Implemented Interfaces:
PsyClearable,PsyContainer<PsyObject>,PsyConvertableToName,PsyConvertableToString,PsyFormalDict<PsyObject>,PsyIndexed<PsyTextual,PsyObject>,PsyIterable<PsyObject>,PsyLengthy,PsyObject,PsySequential<PsyObject>,PsyStreamable<PsyObject>,Iterable<PsyObject>
public class PsyNamespace extends PsyDict
A representation of Ψ-namespace, a named dictionary.
-
-
Constructor Summary
Constructors Constructor Description PsyNamespace(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsyObjectget(String key)booleanknown(String key)Stringprefix()Returns the namespace prefix.voidpsyImport(PsyNamespace oNamespace)StringtoSyntaxString()-
Methods inherited from class coneforest.psylla.core.PsyDict
isEmpty, iterator, length, psyClear, psyClone, psyKeys, psySlice, psyStream, put, undef
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyContainer
psyNewEmpty
-
Methods inherited from interface coneforest.psylla.core.PsyFormalDict
psyDelete, psyEntries, psyExtract, psyForAll, psyGet, psyGetAll, psyKnown, psyPut, psyUndef, toSyntaxStringHelper
-
Methods inherited from interface coneforest.psylla.core.PsyIndexed
psyValues
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyToArray, psyUnite
-
Methods inherited from interface coneforest.psylla.core.PsyLengthy
psyIsEmpty, psyLength
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
-
-
-
Constructor Detail
-
PsyNamespace
public PsyNamespace(String prefix)
-
-
Method Detail
-
prefix
public String prefix()
Returns the namespace prefix.- Returns:
- the prefix.
-
known
public boolean known(String key)
- Specified by:
knownin interfacePsyFormalDict<PsyObject>- Overrides:
knownin classPsyDict
-
get
public PsyObject get(String key) throws PsyException
- Specified by:
getin interfacePsyFormalDict<PsyObject>- Overrides:
getin classPsyDict- Throws:
PsyException
-
psyImport
public void psyImport(PsyNamespace oNamespace)
-
toSyntaxString
public String toSyntaxString()
-
-