|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.metainfo.lib.BasicCompositeName
The BasicCompositeName provides an implementation of the composite name. Composite Name are used to define composite pname. Composite Name defines the multiple fields describing the structure os a name.
Constructor Summary | |
BasicCompositeName(java.lang.String className,
MetaObject parent)
Builds a new CompositeName object. |
Method Summary | |
void |
addInheritedCompositeName(CompositeName cn)
Add an inherited composite name to the current composite name. |
ScalarField |
createCompositeNameField(java.lang.String fieldname,
PType type,
int size)
Build a new scalarfield that describes a field in the composite name |
java.util.Collection |
getAllField()
|
int |
getFieldNumber()
Give the number of fields composing the current composite name. |
java.lang.String |
getFQName()
Allows to know the fully qualifed name of the current CompositeName object. |
CompositeName |
getInheritedCompositeName(java.lang.String name)
Retrieve an inherited composite name form its name. |
int |
getInheritedCompositeNameNumber()
Returns the number of inherited composite name for the current composite name object. |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String |
getName()
Allows to know the name of the current CompositeName object. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
ScalarField |
getScalarField(java.lang.String fieldname)
Retrieve a scalarfield describing the field identified by it name in the current compositename. |
java.util.Iterator |
iterateAllField()
Provides an iterator over the field of the current composite name including the inherited fields. |
java.util.Iterator |
iterateField()
Provides an iterator over the field of the current composite name. |
java.util.Iterator |
iterateInheritedCompositeName()
Provides an iterator over all the composite name inherited by the current composite name. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setParent(MetaObject itsParent)
Set the parent of the current meta object if it is not yet done by the constructor of the meta object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicCompositeName(java.lang.String className, MetaObject parent)
className
- the name of the current classparent
- the parent of the current objectMethod Detail |
public java.lang.String getName()
getName
in interface CompositeName
public java.lang.String getFQName()
getFQName
in interface CompositeName
public void addInheritedCompositeName(CompositeName cn)
addInheritedCompositeName
in interface CompositeName
cn
- the name of the composite name to be inherited.public java.util.Iterator iterateInheritedCompositeName()
iterateInheritedCompositeName
in interface CompositeName
public CompositeName getInheritedCompositeName(java.lang.String name)
getInheritedCompositeName
in interface CompositeName
name
- the name of the composite name
public ScalarField getScalarField(java.lang.String fieldname)
getScalarField
in interface CompositeName
fieldname
- the name of the field.
public int getInheritedCompositeNameNumber()
getInheritedCompositeNameNumber
in interface CompositeName
public ScalarField createCompositeNameField(java.lang.String fieldname, PType type, int size)
createCompositeNameField
in interface CompositeName
fieldname
- the name of the fieldtype
- the ptype of the field
public int getFieldNumber()
getFieldNumber
in interface CompositeName
public java.util.Iterator iterateField()
iterateField
in interface CompositeName
public java.util.Iterator iterateAllField()
iterateAllField
in interface CompositeName
public java.util.Collection getAllField()
public MetaObject getParent()
getParent
in interface MetaObject
public void setParent(MetaObject itsParent)
setParent
in interface MetaObject
itsParent
- the parent MetaObject of the current objectpublic void setLogger(Logger logger)
setLogger
in interface Loggable
logger
- the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory
in interface Loggable
loggerFactory
- the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |