WebObjects 5.4

com.webobjects.appserver.parser.woml
Class WOMLAttributeMap

java.lang.Object
  extended by com.webobjects.appserver.parser.woml.WOMLAttributeMap

public class WOMLAttributeMap
extends Object


Constructor Summary
WOMLAttributeMap(Map<String,Map<String,WOMLAttribute>> attributesByNamespace, Map<String,Map<String,WOAssociation>> associationsByNamespace)
           
 
Method Summary
 boolean containsAttribute(String namespace, String key)
           
 boolean containsAttribute(String namespace, String key, boolean searchUpward)
           
 boolean containsNamespace(String namespace)
           
 WOAssociation getAssociation(String namespace, String key)
           
 WOAssociation getAssociation(String namespace, String key, boolean searchUpward)
          Returns the WOAssociation value for the given key.
 Map<String,WOAssociation> getAssociations(String namespace)
           
 WOMLAttribute getAttribute(String namespace, String key)
           
 WOMLAttribute getAttribute(String namespace, String key, boolean searchUpward)
          Returns the attribute value for the given key.
 Map<String,WOMLAttribute> getAttributes(String namespace)
           
 Collection<String> getNamespaces()
          Returns a collection of the namespaces that are available in this map.
 void setAssociation(String namespace, String key, WOAssociation value)
           
 void setAttribute(String namespace, String key, WOMLAttribute value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WOMLAttributeMap

public WOMLAttributeMap(Map<String,Map<String,WOMLAttribute>> attributesByNamespace,
                        Map<String,Map<String,WOAssociation>> associationsByNamespace)
Method Detail

getNamespaces

public Collection<String> getNamespaces()
Returns a collection of the namespaces that are available in this map.

Returns:

containsNamespace

public boolean containsNamespace(String namespace)

containsAttribute

public boolean containsAttribute(String namespace,
                                 String key)

containsAttribute

public boolean containsAttribute(String namespace,
                                 String key,
                                 boolean searchUpward)

getAttribute

public WOMLAttribute getAttribute(String namespace,
                                  String key)

getAttribute

public WOMLAttribute getAttribute(String namespace,
                                  String key,
                                  boolean searchUpward)
Returns the attribute value for the given key.

Returns:

setAttribute

public void setAttribute(String namespace,
                         String key,
                         WOMLAttribute value)

getAttributes

public Map<String,WOMLAttribute> getAttributes(String namespace)

getAssociations

public Map<String,WOAssociation> getAssociations(String namespace)

getAssociation

public WOAssociation getAssociation(String namespace,
                                    String key)

setAssociation

public void setAssociation(String namespace,
                           String key,
                           WOAssociation value)

getAssociation

public WOAssociation getAssociation(String namespace,
                                    String key,
                                    boolean searchUpward)
Returns the WOAssociation value for the given key.

Returns:

toString

public String toString()
Overrides:
toString in class Object

Last updated Tuesday, October 9, 2007 08:58 PDT

Copyright © 2000-2007 Apple Inc.