org.apache.felix.dm.annotation.plugin.bnd
Class MetaType

java.lang.Object
  extended by org.apache.felix.dm.annotation.plugin.bnd.MetaType

public class MetaType
extends Object

Helper class used to generate an XML representation of a MetaType data structure.


Nested Class Summary
static class MetaType.AD
          An Attribute Definition, which describes a given Properties
static class MetaType.Designate
          A Designate element, which maps a PID to a given Object Class Definition.
static class MetaType.OBject
          A definition of an instance.
static class MetaType.OCD
          An Object Class Definition, which contains a set of Attributes properies.
static class MetaType.Option
          An Option datastructure, which can be associated with an Attribute.
 
Constructor Summary
MetaType()
           
 
Method Summary
 void add(MetaType.Designate designate)
          Adds a Designate element, which maps a PID to an OCD.
 void add(MetaType.OCD ocd)
          Adds an Object Class Definition into this meta type.
 int getSize()
          Returns the number of OCD contained in this meta type.
 void writeTo(PrintWriter pw)
          Generates an XML representation of this metatype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaType

public MetaType()
Method Detail

add

public void add(MetaType.OCD ocd)
Adds an Object Class Definition into this meta type.

Parameters:
ocd - the Object Class Definition.

add

public void add(MetaType.Designate designate)
Adds a Designate element, which maps a PID to an OCD.

Parameters:
designate - the Designate element.

getSize

public int getSize()
Returns the number of OCD contained in this meta type.

Returns:
the number of OCD contained in this meta type.

writeTo

public void writeTo(PrintWriter pw)
Generates an XML representation of this metatype.

Parameters:
pw - a PrintWriter where the XML is written


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.