Project Aristotle - ArisID Attribute Services

org.openliberty.arisidbeans
Class CarmlParser

java.lang.Object
  extended by org.openliberty.arisidbeans.CarmlParser

public class CarmlParser
extends java.lang.Object

Class for parsing the CARML file and creating InteractionDescriptor list and AttributeDescriptor list for all interactions and attributes in the CARML file InteractionDescriptor and AttributeDescriptor lists are used by Bean Generator for generating the bean classes


Constructor Summary
CarmlParser(java.lang.String carmlFile, java.lang.String defaultEntityName)
           
 
Method Summary
 java.lang.String getApplicationName()
           
 java.util.Map<java.lang.String,java.util.List<AttributeDescriptor>> getCarmlAttributes()
           
 java.util.List<AttributeDescriptor> getCarmlAttributes(java.lang.String entity)
           
 java.util.List<InteractionDescriptor> getCarmlInteractions(java.lang.String entity)
           
 java.lang.String getCarmlURI()
           
 java.lang.String getDefaultFindInteraction(java.lang.String entity)
           
 java.lang.String getDefaultReadInteraction(java.lang.String entity)
           
 java.util.List<java.lang.String> getEntityNames()
           
 java.lang.String getFindInteraction(java.lang.String normEntityName, java.lang.String fetchAttrName, java.lang.String attrFilterName)
           
 java.lang.String getReadInteraction(java.lang.String normEntityName, java.lang.String fetchAttrName)
           
 java.lang.String getSearchInteraction(java.lang.String normEntityName, java.lang.String fetchAttrName, java.lang.String attrFilterName)
           
 boolean useDefaultEntityName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarmlParser

public CarmlParser(java.lang.String carmlFile,
                   java.lang.String defaultEntityName)
            throws java.io.FileNotFoundException,
                   AttrSvcInitializedException,
                   AuthenticationException,
                   NoSuchContextException,
                   NoSuchSubjectException,
                   SubjectNotUniqueException,
                   java.lang.InstantiationException,
                   IGFException,
                   java.lang.IllegalAccessException,
                   java.net.URISyntaxException
Throws:
java.io.FileNotFoundException
AttrSvcInitializedException
AuthenticationException
NoSuchContextException
NoSuchSubjectException
SubjectNotUniqueException
java.lang.InstantiationException
IGFException
java.lang.IllegalAccessException
java.net.URISyntaxException
Method Detail

getApplicationName

public java.lang.String getApplicationName()

getCarmlURI

public java.lang.String getCarmlURI()

useDefaultEntityName

public boolean useDefaultEntityName()

getCarmlInteractions

public java.util.List<InteractionDescriptor> getCarmlInteractions(java.lang.String entity)

getCarmlAttributes

public java.util.List<AttributeDescriptor> getCarmlAttributes(java.lang.String entity)

getCarmlAttributes

public java.util.Map<java.lang.String,java.util.List<AttributeDescriptor>> getCarmlAttributes()

getEntityNames

public java.util.List<java.lang.String> getEntityNames()

getDefaultReadInteraction

public java.lang.String getDefaultReadInteraction(java.lang.String entity)

getDefaultFindInteraction

public java.lang.String getDefaultFindInteraction(java.lang.String entity)

getReadInteraction

public java.lang.String getReadInteraction(java.lang.String normEntityName,
                                           java.lang.String fetchAttrName)

getFindInteraction

public java.lang.String getFindInteraction(java.lang.String normEntityName,
                                           java.lang.String fetchAttrName,
                                           java.lang.String attrFilterName)

getSearchInteraction

public java.lang.String getSearchInteraction(java.lang.String normEntityName,
                                             java.lang.String fetchAttrName,
                                             java.lang.String attrFilterName)

OpenLiberty.org - Licensed under Apache APL 2.0