public interface TypeHelper
Modifier and Type | Field and Description |
---|---|
static TypeHelper |
INSTANCE
The default TypeHelper.
|
Modifier and Type | Method and Description |
---|---|
Type |
define(DataObject type)
Define the DataObject as a Type.
|
List |
define(List types)
Define the list of DataObjects as Types.
|
Property |
defineOpenContentProperty(String uri,
DataObject property)
Define the DataObject as a Property for setting open content.
|
Property |
getOpenContentProperty(String uri,
String propertyName)
Get the open content (global) Property with the specified uri and name, or null
if not found.
|
Type |
getType(Class interfaceClass)
Return the Type for this interfaceClass or null if not found.
|
Type |
getType(String uri,
String typeName)
Return the Type specified by typeName with the given uri,
or null if not found.
|
static final TypeHelper INSTANCE
Type getType(String uri, String typeName)
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();Type getType(Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();Property getOpenContentProperty(String uri, String propertyName)
uri
- the namespace URI of the open content Property.propertyName
- the name of the open content Property.Type define(DataObject type)
type
- the DataObject representing the Type.IllegalArgumentException
- if the Type could not be defined.List define(List types)
types
- a List of DataObjects representing the Types.IllegalArgumentException
- if the Types could not be defined.Property defineOpenContentProperty(String uri, DataObject property)
uri
- the namespace URI of the open content Property or null.IllegalArgumentException
- if the Property could not be defined.Copyright © 2019 The Apache Software Foundation. All rights reserved.