org.jboss.shrinkwrap.descriptor.metadata
Class Metadata

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.metadata.Metadata

public class Metadata
extends Object

This class serves as a sink for all extracted meta-data information.

Author:
Ralf Battenfeld

Constructor Summary
Metadata()
           
 
Method Summary
 void addClassElement(String className, MetadataElement classElement)
          Adds a new element to the specific element class.
 void addClassReference(String className, MetadataElement classReference)
          Adds a new reference to the specific element class.
 void addEnumValue(String enumName, String enumValue)
          Adds a enumeration value to the specified enumeration name.
 void addGroupElement(String groupName, MetadataElement groupElement)
          Adds a new element to the specific group element class.
 void addGroupReference(String groupName, MetadataElement groupReference)
          Adds a new reference to the specific group element class.
 List<MetadataItem> getClassList()
           
 String getCurrentNamespace()
           
 String getCurrentPackageApi()
           
 String getCurrentPackageImpl()
           
 String getCurrentSchmema()
           
 List<MetadataItem> getDataTypeList()
           
 List<MetadataEnum> getEnumList()
           
 List<MetadataItem> getGroupList()
           
 List<MetadataDescriptor> getMetadataDescriptorList()
           
 List<String> getPackageApiList()
           
 List<String> getPackageImplList()
           
 void preResolveDataTypes()
          Replaces all data type occurrences found in the element types for all classes with the simple data type.
 void setCurrentNamespace(String currentNamespace)
           
 void setCurrentPackageApi(String currentPackageApi)
           
 void setCurrentPackageImpl(String currentPackageImpl)
           
 void setCurrentSchmema(String currentSchmema)
           
 void setMetadataDescriptorList(List<MetadataDescriptor> metadataDescriptorList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata()
Method Detail

getMetadataDescriptorList

public List<MetadataDescriptor> getMetadataDescriptorList()

setMetadataDescriptorList

public void setMetadataDescriptorList(List<MetadataDescriptor> metadataDescriptorList)

getCurrentNamespace

public String getCurrentNamespace()

setCurrentNamespace

public void setCurrentNamespace(String currentNamespace)

getCurrentSchmema

public String getCurrentSchmema()

setCurrentSchmema

public void setCurrentSchmema(String currentSchmema)

getCurrentPackageApi

public String getCurrentPackageApi()

setCurrentPackageApi

public void setCurrentPackageApi(String currentPackageApi)

getCurrentPackageImpl

public String getCurrentPackageImpl()

setCurrentPackageImpl

public void setCurrentPackageImpl(String currentPackageImpl)

getDataTypeList

public List<MetadataItem> getDataTypeList()

getEnumList

public List<MetadataEnum> getEnumList()

getGroupList

public List<MetadataItem> getGroupList()

getClassList

public List<MetadataItem> getClassList()

getPackageApiList

public List<String> getPackageApiList()

getPackageImplList

public List<String> getPackageImplList()

addEnumValue

public void addEnumValue(String enumName,
                         String enumValue)
Adds a enumeration value to the specified enumeration name. If no enumeration class is found, then a new enumeration class will be created.

Parameters:
enumName - the enumeration class name.
enumValue - the new enumeration value.

addGroupElement

public void addGroupElement(String groupName,
                            MetadataElement groupElement)
Adds a new element to the specific group element class. If no group element class is found, then a new group element class. will be created.

Parameters:
groupName - the group class name of
groupElement - the new element to be added.

addGroupReference

public void addGroupReference(String groupName,
                              MetadataElement groupReference)
Adds a new reference to the specific group element class. If no group element class is found, then a new group element class. will be created.

Parameters:
groupName - the group class name of
groupReference - the new reference to be added.

addClassElement

public void addClassElement(String className,
                            MetadataElement classElement)
Adds a new element to the specific element class. If no element class is found, then a new element class. will be created.

Parameters:
className - the class name
classElement - the new element to be added.

addClassReference

public void addClassReference(String className,
                              MetadataElement classReference)
Adds a new reference to the specific element class. If no element class is found, then a new element class. will be created.

Parameters:
className - the class name
classReference - the new reference to be added.

preResolveDataTypes

public void preResolveDataTypes()
Replaces all data type occurrences found in the element types for all classes with the simple data type. This simplifies later the XSLT ddJavaAll step.



Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.