org.jboss.shrinkwrap.descriptor.metadata
Class MetadataElement

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

public class MetadataElement
extends Object

This class holds the information used for generating a specific API interface and implementation class.

Author:
Ralf Battenfeld

Constructor Summary
MetadataElement()
          Creates a new and empty instance.
MetadataElement(Element element)
          Constructs a new instance by reading the given w3c element.
 
Method Summary
 boolean getIsAttribute()
           
 String getMappedTo()
           
 String getMaxOccurs()
           
 String getMinOccurs()
           
 String getName()
           
 String getRef()
           
 String getType()
           
 boolean isRef()
           
 void setIsAttribute(boolean isAttribute)
           
 void setIsRef(boolean isRef)
           
 void setMappedTo(String mappedTo)
           
 void setMaxOccurs(String maxOccurs)
           
 void setMinOccurs(String minOccurs)
           
 void setName(String name)
           
 void setRef(String ref)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataElement

public MetadataElement()
Creates a new and empty instance.


MetadataElement

public MetadataElement(Element element)
Constructs a new instance by reading the given w3c element.

Parameters:
element - w3c element used for extracting various attributes.
Method Detail

getName

public String getName()

setName

public void setName(String name)

getType

public String getType()

setType

public void setType(String type)

getIsAttribute

public boolean getIsAttribute()

setIsAttribute

public void setIsAttribute(boolean isAttribute)

getMinOccurs

public String getMinOccurs()

setMinOccurs

public void setMinOccurs(String minOccurs)

getMaxOccurs

public String getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(String maxOccurs)

getRef

public String getRef()

setRef

public void setRef(String ref)

isRef

public boolean isRef()

setIsRef

public void setIsRef(boolean isRef)

getMappedTo

public String getMappedTo()

setMappedTo

public void setMappedTo(String mappedTo)


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