com.macromedia.rssu
Class ObjectMetadata

java.lang.Object
  extended bycom.macromedia.rssu.ObjectMetadata

public class ObjectMetadata
extends java.lang.Object

Every object that gets written to and from xml needs it its own set of metadata. This metadata includes what fields are in this object and what types they are.

The reason that this metadata is kept outside of the object is that we want to be able to swap the rules for how you read and write an object at any time.

For example, how you write and read a Channel using RssStyle is different from how you write and read a Channel using RdfStyle.


Constructor Summary
ObjectMetadata(PropertyMetadata[] props)
          Initialize the object metadata
 
Method Summary
 java.util.Iterator getNames()
          Iterate through a list of names in our metadata
 PropertyMetadata getProperty(java.lang.String name)
          Given the name of a property, return the property metadata object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMetadata

public ObjectMetadata(PropertyMetadata[] props)
Initialize the object metadata

Parameters:
props - is the property level metadata
Method Detail

getProperty

public PropertyMetadata getProperty(java.lang.String name)
Given the name of a property, return the property metadata object

Parameters:
name - is the name of the property

getNames

public java.util.Iterator getNames()
Iterate through a list of names in our metadata

Returns:
a list of names in our property list