|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.naming.lib.BasicPNamingContext
Default implementation for a PNamingContext with no coding support.
Field Summary | |
protected PType |
ptype
|
Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
CTBIGDECIMAL, CTBIGINTEGER, CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM |
Constructor Summary | |
BasicPNamingContext()
|
Method Summary | |
boolean |
codingSupported(int codingtype)
It tests if a given coding type is supported by this naming context. |
PName |
decode(byte[] en)
The decode methods recreates PName within a naming context from an encoded representation. |
PName |
decodeAbstract(java.lang.Object en,
java.lang.Object context)
The decodeAbstract methods recreates PName within a naming context from an encoded representation. |
PName |
decodeBigDecimal(java.math.BigDecimal en)
The decodeBigDecimal methods recreates PName within a naming context from an encoded representation. |
PName |
decodeBigInteger(java.math.BigInteger en)
The decodeBigInteger methods recreates PName within a naming context from an encoded representation. |
PName |
decodeByte(byte en)
The decodeByte methods recreates PName within a naming context from an encoded representation. |
PName |
decodeChar(char en)
The decodeChar methods recreates PName within a naming context from an encoded representation. |
PName |
decodeCharArray(char[] en)
The decodeCharArray methods recreates PName within a naming context from an encoded representation. |
PName |
decodeDate(java.util.Date en)
The decodeDate methods recreates PName within a naming context from an encoded representation. |
PName |
decodeInt(int en)
The decodeInt methods recreates PName within a naming context from an encoded representation. |
PName |
decodeLong(long en)
The decodeLong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeObyte(java.lang.Byte en)
The decodeObyte methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOchar(java.lang.Character en)
The decodeOchar methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOint(java.lang.Integer en)
The decodeOint methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOlong(java.lang.Long en)
The decodeOlong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOshort(java.lang.Short en)
The decodeOshort methods recreates PName within a naming context from an encoded representation. |
PName |
decodeShort(short en)
The decodeShort methods recreates PName within a naming context from an encoded representation. |
byte[] |
encode(PName pn)
The encode method produces an encoded representation of a PName within a naming context. |
java.lang.Object |
encodeAbstract(PName pn)
The encodeAbstract method produces an encoded representation of a PName within a naming context. |
java.math.BigDecimal |
encodeBigDecimal(PName pn)
The encodeBigDecimal method produces an encoded representation of a PName within a naming context. |
java.math.BigInteger |
encodeBigInteger(PName pn)
The encodeBigInteger method produces an encoded representation of a PName within a naming context. |
byte |
encodeByte(PName pn)
The encodeByte method produces an encoded representation of a PName within a naming context. |
char |
encodeChar(PName pn)
The encodeChar method produces an encoded representation of a PName within a naming context. |
char[] |
encodeCharArray(PName pn)
The encodeCharArray method produces an encoded representation of a PName within a naming context. |
java.util.Date |
encodeDate(PName pn)
The encodeDate method produces an encoded representation of a PName within a naming context. |
int |
encodeInt(PName pn)
The encodeInt method produces an encoded representation of a PName within a naming context. |
long |
encodeLong(PName pn)
The encodeLong method produces an encoded representation of a PName within a naming context. |
java.lang.Byte |
encodeObyte(PName pn)
The encodeObyte method produces an encoded representation of a PName within a naming context. |
java.lang.Character |
encodeOchar(PName pn)
The encodeOchar method produces an encoded representation of a PName within a naming context. |
java.lang.Integer |
encodeOint(PName pn)
The encodeOint method produces an encoded representation of a PName within a naming context. |
java.lang.Long |
encodeOlong(PName pn)
The encodeOlong method produces an encoded representation of a PName within a naming context. |
java.lang.Short |
encodeOshort(PName pn)
The encodeOshort method produces an encoded representation of a PName within a naming context. |
short |
encodeShort(PName pn)
The encodeShort method produces an encoded representation of a PName within a naming context. |
PType |
getPType()
Retrieves the PType associated to the JORM class which is the type of the name managed by this naming context. |
void |
setPType(PType pt)
Assigns the PType associated to the JORM class which is the type of the name managed by this naming context. |
boolean |
supportCompositeField(java.lang.String fn,
PType ft)
In case of a naming context that supports composite names (i.e., names composed of several typed fields, whose type is limited to scalar ones), it tests if a particular field is defined by this composite name. |
boolean |
supportDynamicComposite()
Tests if this naming context supports comosite name through a dynamic approach, which means that encodingAbstract/decodingAbstract use getter objects that implement the PNameGetter interface. |
boolean |
supportStaticComposite()
Tests if this naming context supports comosite name through a static approach, which means that encodingAbstract/decodingAbstract use getter objects that implement specific NsFieldGetter interface generated for a particular field "Field" within a particular NameDef space "Ns". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.naming.api.PNamingContext |
resolve |
Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager |
export, export, unexport, unexport |
Methods inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
decodeString, encodeString, getNull, setNullPName |
Field Detail |
protected PType ptype
Constructor Detail |
public BasicPNamingContext()
Method Detail |
public PType getPType()
PNameCoder
getPType
in interface PNameCoder
public void setPType(PType pt)
PNameCoder
setPType
in interface PNameCoder
pt
- The PType of the JORM class reference managed by this naming
context.public boolean codingSupported(int codingtype)
PNameCoder
codingSupported
in interface PNameCoder
codingtype
- One of the coding type defined by CTxxx constants
defined within this interface.
public PName decode(byte[] en) throws PExceptionNaming
PNameCoder
decode
in interface PNameCoder
en
- The byte to be decoded.
PExceptionNaming
public PName decodeCharArray(char[] en) throws PExceptionNaming
PNameCoder
decodeCharArray
in interface PNameCoder
en
- The char[] to be decoded.
PExceptionNaming
public PName decodeAbstract(java.lang.Object en, java.lang.Object context) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeAbstract
in interface PNameCoder
context
- A context used to decode the related data.en
- The Object to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeByte(byte en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeByte
in interface PNameCoder
en
- The byte to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeObyte(java.lang.Byte en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeObyte
in interface PNameCoder
en
- The Byte to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeChar(char en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeChar
in interface PNameCoder
en
- The char to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeOchar(java.lang.Character en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeOchar
in interface PNameCoder
en
- The Character to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeInt(int en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeInt
in interface PNameCoder
en
- The int to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeOint(java.lang.Integer en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeOint
in interface PNameCoder
en
- The Integer to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeLong(long en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeLong
in interface PNameCoder
en
- The long to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeOlong(java.lang.Long en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeOlong
in interface PNameCoder
en
- The Long to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeShort(short en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeShort
in interface PNameCoder
en
- The short to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeOshort(java.lang.Short en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeOshort
in interface PNameCoder
en
- The Short to be decoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeDate(java.util.Date en) throws PExceptionNaming
PNameCoder
decodeDate
in interface PNameCoder
en
- The Date to be decoded.
PExceptionNaming
public PName decodeBigInteger(java.math.BigInteger en) throws PExceptionNaming
PNameCoder
decodeBigInteger
in interface PNameCoder
en
- The BigInteger to be decoded.
PExceptionNaming
public PName decodeBigDecimal(java.math.BigDecimal en) throws PExceptionNaming
PNameCoder
decodeBigDecimal
in interface PNameCoder
en
- The BigDecimal to be decoded.
PExceptionNaming
public byte[] encode(PName pn) throws PExceptionNaming
PNameCoder
encode
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
public char[] encodeCharArray(PName pn) throws PExceptionNaming
PNameCoder
encodeCharArray
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
public java.lang.Object encodeAbstract(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeAbstract
in interface PNameCoder
pn
- The PName to be encoded.
PExceptionNaming
java.lang.UnsupportedOperationException
public byte encodeByte(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeByte
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Byte encodeObyte(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeObyte
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public char encodeChar(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeChar
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Character encodeOchar(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeOchar
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public int encodeInt(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeInt
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Integer encodeOint(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeOint
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public long encodeLong(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeLong
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Long encodeOlong(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeOlong
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public short encodeShort(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeShort
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Short encodeOshort(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeOshort
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
java.lang.UnsupportedOperationException
public java.util.Date encodeDate(PName pn) throws PExceptionNaming
PNameCoder
encodeDate
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
public java.math.BigInteger encodeBigInteger(PName pn) throws PExceptionNaming
PNameCoder
encodeBigInteger
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
public java.math.BigDecimal encodeBigDecimal(PName pn) throws PExceptionNaming
PNameCoder
encodeBigDecimal
in interface PNameCoder
pn
- The PName to be encoded
PExceptionNaming
public boolean supportDynamicComposite()
PNameCoder
supportDynamicComposite
in interface PNameCoder
public boolean supportCompositeField(java.lang.String fn, PType ft)
PNameCoder
supportCompositeField
in interface PNameCoder
public boolean supportStaticComposite()
PNameCoder
supportStaticComposite
in interface PNameCoder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |