BElementDecl Class Reference

#include <BContent.h>

Inheritance diagram for BElementDecl:

BXMLObject BNamed List of all members.

Public Types

enum  element_children_allowed { EMPTY, ANY, MIXED, CHILDREN }
enum  node_cardinality { ONE, ONE_OR_MORE, ZERO_OR_MORE, ONE_OR_ZERO }

Public Member Functions

 BElementDecl (const char *name)
 BElementDecl (const BString &name)
virtual ~BElementDecl ()
virtual status_t SetTo (BString &contentSpec)
element_children_allowed Mode () const
void SetMode (element_children_allowed mode)
status_t AllowElement (const char *name)
status_t AllowElement (const char *name, int32 length)
status_t DisallowElement (const char *name)
bool IsElementAllowed (const char *name)
int32 CountAllowedElements () const
const BStringAllowedElementAt (int32 index) const
ListNodeGetPattern ()
const ListNodeGetPattern () const
status_t AddAttributeDecl (BAttributeDecl *decl)
BAttributeDeclFindAttributeDecl (const char *name)
const BAttributeDeclFindAttributeDecl (const char *name) const
int32 CountAttributeDecls () const
BAttributeDeclGetAttributeDecl (int32 index)
const BAttributeDeclGetAttributeDecl (int32 index) const
status_t RemoveAttributeDecl (BAttributeDecl *decl)

Static Public Member Functions

static bool AllChildrenOptional (const ListNode *node)

Classes

struct  ListNode
class  List

Member Enumeration Documentation

enum element_children_allowed
 

Enumerator:
EMPTY 
ANY 
MIXED 
CHILDREN 

enum node_cardinality
 

Enumerator:
ONE 
ONE_OR_MORE 
ZERO_OR_MORE 
ONE_OR_ZERO 


Constructor & Destructor Documentation

BElementDecl const char *  name  ) 
 

BElementDecl const BString name  ) 
 

virtual ~BElementDecl  )  [virtual]
 


Member Function Documentation

status_t AddAttributeDecl BAttributeDecl decl  ) 
 

static bool AllChildrenOptional const ListNode node  )  [static]
 

const BString& AllowedElementAt int32  index  )  const
 

status_t AllowElement const char *  name,
int32  length
 

status_t AllowElement const char *  name  ) 
 

int32 CountAllowedElements  )  const
 

int32 CountAttributeDecls  )  const
 

status_t DisallowElement const char *  name  ) 
 

const BAttributeDecl* FindAttributeDecl const char *  name  )  const
 

BAttributeDecl* FindAttributeDecl const char *  name  ) 
 

const BAttributeDecl* GetAttributeDecl int32  index  )  const
 

BAttributeDecl* GetAttributeDecl int32  index  ) 
 

const ListNode* GetPattern  )  const
 

ListNode* GetPattern  ) 
 

bool IsElementAllowed const char *  name  ) 
 

element_children_allowed Mode  )  const
 

status_t RemoveAttributeDecl BAttributeDecl decl  ) 
 

void SetMode element_children_allowed  mode  ) 
 

virtual status_t SetTo BString contentSpec  )  [virtual]
 


Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.