|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SyntaxElement>
fr.inrialpes.exmo.align.parser.SyntaxElement
public enum SyntaxElement
Defines all the elements which might show up in a mapping document. Here are also the string representations for the different elements defined.
$Id: SyntaxElement.java 1520 2010-10-06 07:10:00Z euzenat $
Nested Class Summary | |
---|---|
static class |
SyntaxElement.Constructor
Operator to determine how to combine the expressions |
Field Summary | |
---|---|
boolean |
isProperty
If the resource is a property. |
String |
name
Holds the xml name for the element. |
Namespace |
namespace
Holds the namespace for the element. |
SyntaxElement.Constructor |
operator
Holds the corresponding operator in the . |
private static Map<String,SyntaxElement> |
register
|
Object |
resource
Holds the RDF Resource or property for the entity This is to be used by the RDF parser. |
Method Summary | |
---|---|
static SyntaxElement |
getElement(SyntaxElement.Constructor op)
|
static SyntaxElement |
getElementByName(String s)
Determines an element given on a name string. |
String |
getName()
Returns the xml name of the element. |
Namespace |
getNamespace()
Returns the namespace of the element. |
SyntaxElement.Constructor |
getOperator()
Returns the namespace of the element. |
static Object |
getResource(String name)
Returns the resource of the element. |
String |
id()
|
String |
print()
Formats the element to a printable string. |
String |
print(Namespace namespace)
Formats the element to a printable string. |
private static void |
recordElement(String name,
SyntaxElement el)
|
String |
toString()
Prints a short description of the element. |
static SyntaxElement |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SyntaxElement[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SyntaxElement RDF
public static final SyntaxElement RDF_ID
public static final SyntaxElement RDF_ABOUT
public static final SyntaxElement RDF_DATATYPE
public static final SyntaxElement RDF_PARSETYPE
public static final SyntaxElement RDF_RESOURCE
public static final SyntaxElement CREATOR
public static final SyntaxElement DATE
public static final SyntaxElement IDENTIFIER
public static final SyntaxElement ALIGNMENT
public static final SyntaxElement ALID
public static final SyntaxElement CELL
public static final SyntaxElement CERTIFICATE
public static final SyntaxElement FORMALISM
public static final SyntaxElement FORMATT
public static final SyntaxElement CELLID
public static final SyntaxElement LEVEL
public static final SyntaxElement LIMITATIONS
public static final SyntaxElement MAP
public static final SyntaxElement MAPPING_SOURCE
public static final SyntaxElement MAPPING_TARGET
public static final SyntaxElement MEASURE
public static final SyntaxElement METHOD
public static final SyntaxElement NAME
public static final SyntaxElement PURPOSE
public static final SyntaxElement RULE_RELATION
public static final SyntaxElement SEMANTICS
public static final SyntaxElement ENTITY1
public static final SyntaxElement ENTITY2
public static final SyntaxElement TIME
public static final SyntaxElement TYPE
public static final SyntaxElement URI
public static final SyntaxElement XML
public static final SyntaxElement ONTOLOGY
public static final SyntaxElement LOCATION
public static final SyntaxElement AND
public static final SyntaxElement APPLY
public static final SyntaxElement ARGUMENTS
public static final SyntaxElement ATTR_TRANSF
public static final SyntaxElement CLASS_EXPR
public static final SyntaxElement COMPARATOR
public static final SyntaxElement COMPOSE
public static final SyntaxElement DATATYPE
public static final SyntaxElement DOMAIN_RESTRICTION
public static final SyntaxElement INSTANCE_EXPR
public static final SyntaxElement INVERSE
public static final SyntaxElement LITERAL
public static final SyntaxElement NOT
public static final SyntaxElement ONPROPERTY
public static final SyntaxElement OPERATOR
public static final SyntaxElement OR
public static final SyntaxElement PROPERTY_EXPR
public static final SyntaxElement OCCURENCE_COND
public static final SyntaxElement PROPERTY_TYPE_COND
public static final SyntaxElement PROPERTY_DOMAIN_COND
public static final SyntaxElement PROPERTY_VALUE_COND
public static final SyntaxElement RELATION_DOMAIN_COND
public static final SyntaxElement RELATION_CODOMAIN_COND
public static final SyntaxElement REFLEXIVE
public static final SyntaxElement RELATION_EXPR
public static final SyntaxElement STRING
public static final SyntaxElement SYMMETRIC
public static final SyntaxElement TOCLASS
public static final SyntaxElement ALL
public static final SyntaxElement EXISTS
public static final SyntaxElement TRENT1
public static final SyntaxElement TRENT2
public static final SyntaxElement TRANSF
public static final SyntaxElement TRDIR
public static final SyntaxElement TRANSFORMATION
public static final SyntaxElement TRANSITIVE
public static final SyntaxElement TYPE_COND
public static final SyntaxElement VALUE
public static final SyntaxElement VAR
public static final SyntaxElement VALUE_COND
Field Detail |
---|
private static Map<String,SyntaxElement> register
public final String name
public final Namespace namespace
public final SyntaxElement.Constructor operator
public Object resource
public final boolean isProperty
Method Detail |
---|
public static SyntaxElement[] values()
for (SyntaxElement c : SyntaxElement.values()) System.out.println(c);
public static SyntaxElement valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullprivate static void recordElement(String name, SyntaxElement el)
public static SyntaxElement getElementByName(String s)
s
- the string to search for
NullPointerException
- if the string is nullpublic String getName()
public Namespace getNamespace()
public static Object getResource(String name) throws AlignmentException
AlignmentException
public SyntaxElement.Constructor getOperator()
public static SyntaxElement getElement(SyntaxElement.Constructor op)
public String print()
rdf:resource
public String id()
public String print(Namespace namespace)
namespace
- the namespace for which not to prefix the resulting string
print()
public String toString()
Prints a short description of the element. The format will be the shortcut of the namespace, and the name of the element separated by ':'.
A example string could be: rdf:resource
toString
in class Enum<SyntaxElement>
|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |