|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--canguru.descriptor.Element
Field Summary | |
private java.util.Map |
attributes
|
private java.lang.Long |
id
|
private byte[] |
serializedForm
|
private AttributeType |
serializedType
|
Constructor Summary | |
(package private) |
Element(java.lang.Long id)
Cria um novo elemento |
Method Summary | |
(package private) void |
addAttribute(java.lang.String attributeName,
AttributeType type,
java.lang.Long attributeId,
java.lang.Object attributeValue)
Adiciona um atributo ao elemento. |
Attribute |
getAttribute(java.lang.String attributeName)
Retorna um atributo pelo nome |
java.util.Map |
getAttributes()
Retorna um Map com os atributos do elemento |
java.lang.Long |
getId()
Retorna o id do elemento |
byte[] |
getSerializedForm()
Retorna a forma serializada do elemento |
AttributeType |
getSerializedType()
Retorna o tipo da forma serializada do elemento |
(package private) void |
setSerializedForm(byte[] serializedForm)
Registra forma serializada do elemento |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Long id
private java.util.Map attributes
private byte[] serializedForm
private AttributeType serializedType
Constructor Detail |
Element(java.lang.Long id)
id
- id do elementoMethod Detail |
void addAttribute(java.lang.String attributeName, AttributeType type, java.lang.Long attributeId, java.lang.Object attributeValue) throws InvalidNameException, InvalidAttributeException
type
- tipo do atributo
InvalidNameException
InvalidAttributeException
void setSerializedForm(byte[] serializedForm)
serializedForm
- forma serializada do elementopublic java.lang.Long getId()
public Attribute getAttribute(java.lang.String attributeName) throws AttributeNotFoundException
attributeName
- nome do atributo
AttributeNotFoundException
public java.util.Map getAttributes()
Map
com os atributos do elemento
public byte[] getSerializedForm()
public AttributeType getSerializedType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |