001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify
008: * it under the terms of the GNU General Public License as published by
009: * the Free Software Foundation; either version 2 of the License, or
010: * (at your option) any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License for more details.
016: *
017: * You should have received a copy of the GNU General Public License
018: * along with this program; if not, write to the Free Software
019: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * $Id: IDatatypeDefinition.java 6044 2007-03-18 03:55:52Z mpreston $
023: *
024: */
025: package com.bostechcorp.cbesb.common.mdl;
026:
027: import javax.xml.namespace.QName;
028:
029: /**
030: * Represents an instance of a "datatype" tag in an MDL document. This will also
031: * represent the built in MDL data types. Some of the functionality provided:
032: * 1. Get/Set name and namespace URI
033: * NOTE: In first release, only String type will be supported. More functionality
034: * will be added to this class once the requirements of user defined data type is
035: * better defined.
036: *
037: */
038: public interface IDatatypeDefinition {
039:
040: /**
041: * dataType is "mdl:string".
042: */
043: public static String stringTypeName = "String";
044:
045: /**
046: * Get the name of datatype.
047: *
048: * @return Returns the name.
049: */
050: public String getName();
051:
052: /**
053: * Set the name of datatype.
054: *
055: * @param name The name to set.
056: */
057: public void setName(String name);
058:
059: /**
060: * Get the namespaceURI of datatype.
061: *
062: * @return Returns the namespaceURI.
063: */
064: public String getNamespaceURI();
065:
066: /**
067: * Set the namespaceURI of datatype.
068: *
069: * @param namespaceURI The namespaceURI to set.
070: */
071: public void setNamespaceURI(String namespaceURI);
072:
073: /**
074: * Get the description.
075: *
076: * @return description
077: */
078: public String getDescription();
079:
080: /**
081: * Set the description.
082: *
083: * @param description String
084: */
085: public void setDescription(String description);
086:
087: /**
088: * Get the baseType.
089: *
090: * @return baseType
091: */
092: public QName getBaseType();
093:
094: /**
095: * Set the baseType.
096: *
097: * @param baseType String
098: */
099: public void setBaseType(QName baseType);
100:
101: }
|