public final class CitizenMetadataUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WSDL_NETSUITE_WSDL |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.metadata.api.builder.ObjectFieldTypeBuilder |
addField(org.mule.metadata.api.model.ObjectFieldType fieldType,
org.mule.metadata.api.builder.ObjectTypeBuilder parentBuilder,
List<String> attributes) |
static void |
addFormatToDateTimeField(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldBuilder) |
static void |
copyKeyAttributes(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectKeyBuilder key) |
static org.mule.metadata.api.builder.ObjectTypeBuilder |
copyValue(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectFieldTypeBuilder newFieldBuilder) |
static void |
filterAndCopyKeyAttributes(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectKeyBuilder key,
List<String> attributes) |
static void |
filterMetadata(List<QName> path,
org.mule.metadata.api.model.ObjectType originalType,
Map<String,org.mule.metadata.api.builder.ObjectTypeBuilder> fieldTypeBuilderMap,
Map<String,List<String>> attributeMap) |
static String |
getLabel(QName name) |
static String |
getMetadataFieldKey(String type,
String separator,
String scriptId,
String internalId,
String customListInternalId) |
static Set<org.mule.runtime.api.metadata.MetadataKey> |
getMetadataKeys() |
static CitizenRecordEnum |
getRecordEnum(String key)
Gets a record enum from the string value
|
static org.mule.runtime.api.util.LazyValue<org.mule.metadata.xml.api.XmlTypeLoader> |
getTypeLoader() |
static String |
getXmlAttribute(Node node,
String key) |
static org.mule.metadata.api.model.ObjectType |
loadCitizenMetadata(org.mule.runtime.api.metadata.MetadataContext context,
String key,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists,
String qName) |
static org.mule.metadata.api.model.MetadataType |
loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
boolean fetchCustomLists)
The method loads metadata model from service/operation metadata schema
|
static org.mule.metadata.api.model.MetadataType |
loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
boolean fetchCustomFields,
boolean fetchCustomLists) |
static org.mule.metadata.api.model.MetadataType |
loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists) |
static org.mule.metadata.api.model.ObjectType |
loadStaticMetadata(String qName)
Loads static metadata from XSD files
|
static org.mule.metadata.api.model.ObjectFieldType |
mapField(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectTypeBuilder builder)
Rebuilds metadata field to include a label defined by a local part of QName.
|
static void |
mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name)
Performs a mapping for each metadata key.
|
static void |
mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name,
boolean copyAttributes) |
static void |
mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name,
List<String> attributes) |
static String[] |
splitCustomRecordKey(String recordType,
NetSuiteSoapConfig config) |
static void |
unwrapRootFieldAndMap(org.mule.runtime.api.metadata.MetadataContext context,
org.mule.metadata.api.builder.ObjectTypeBuilder builder,
org.mule.metadata.api.model.ObjectType objectType,
String fieldName,
String wsdlVersion,
String recordData,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists)
Retrieves the first field from the input objectType and replaces its name with the field name argument.
|
public static final String WSDL_NETSUITE_WSDL
public static void unwrapRootFieldAndMap(org.mule.runtime.api.metadata.MetadataContext context,
org.mule.metadata.api.builder.ObjectTypeBuilder builder,
org.mule.metadata.api.model.ObjectType objectType,
String fieldName,
String wsdlVersion,
String recordData,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists)
throws org.mule.runtime.api.connection.ConnectionException,
org.mule.runtime.api.metadata.MetadataResolvingException
context - metadata contextbuilder - metadata object builderobjectType - object to use as a transformation basefieldName - a new field namewsdlVersion - The wsdl version to userecordData - the recordData for which we fetch the custom fieldsmetadataKeyFunction - the metadata key function to applyfetchCustomFields - should fetch or not custom fieldsfetchCustomLists - should fetch or not custom listsorg.mule.runtime.api.connection.ConnectionException - if a connection exception occursorg.mule.runtime.api.metadata.MetadataResolvingException - if something goes wrong while resolving the metadatapublic static org.mule.metadata.api.model.MetadataType loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
boolean fetchCustomLists)
throws org.mule.runtime.api.metadata.MetadataResolvingException
context - a metadata contextkey - field for which metadata model is requiredfetchCustomLists - to fetch or not custom listsorg.mule.runtime.api.metadata.MetadataResolvingException - indicates problem either with xml loading or key valuepublic static org.mule.metadata.api.model.MetadataType loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
boolean fetchCustomFields,
boolean fetchCustomLists)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static org.mule.metadata.api.model.MetadataType loadMetaData(org.mule.runtime.api.metadata.MetadataContext context,
String key,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static org.mule.metadata.api.model.ObjectType loadCitizenMetadata(org.mule.runtime.api.metadata.MetadataContext context,
String key,
Function<CitizenCustomFieldRefType,String> metadataKeyFunction,
boolean fetchCustomFields,
boolean fetchCustomLists,
String qName)
throws org.mule.runtime.api.metadata.MetadataResolvingException,
org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.metadata.MetadataResolvingExceptionorg.mule.runtime.api.connection.ConnectionExceptionpublic static org.mule.metadata.api.model.ObjectFieldType mapField(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectTypeBuilder builder)
field - the object field typebuilder - the object type builderpublic static void addFormatToDateTimeField(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldBuilder)
public static void mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name)
fieldTypeBuilder - the fieldTypeBuilder to usefield - the field to usename - the name to usepublic static void mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name,
boolean copyAttributes)
public static void mapKey(org.mule.metadata.api.builder.ObjectFieldTypeBuilder fieldTypeBuilder,
org.mule.metadata.api.model.ObjectFieldType field,
QName name,
List<String> attributes)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static void copyKeyAttributes(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectKeyBuilder key)
public static void filterAndCopyKeyAttributes(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectKeyBuilder key,
List<String> attributes)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static org.mule.runtime.api.util.LazyValue<org.mule.metadata.xml.api.XmlTypeLoader> getTypeLoader()
public static org.mule.metadata.api.builder.ObjectFieldTypeBuilder addField(org.mule.metadata.api.model.ObjectFieldType fieldType,
org.mule.metadata.api.builder.ObjectTypeBuilder parentBuilder,
List<String> attributes)
throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static org.mule.metadata.api.builder.ObjectTypeBuilder copyValue(org.mule.metadata.api.model.ObjectFieldType field,
org.mule.metadata.api.builder.ObjectFieldTypeBuilder newFieldBuilder)
public static void filterMetadata(List<QName> path, org.mule.metadata.api.model.ObjectType originalType, Map<String,org.mule.metadata.api.builder.ObjectTypeBuilder> fieldTypeBuilderMap, Map<String,List<String>> attributeMap) throws org.mule.runtime.api.metadata.MetadataResolvingException
org.mule.runtime.api.metadata.MetadataResolvingExceptionpublic static String getMetadataFieldKey(String type, String separator, String scriptId, String internalId, String customListInternalId)
public static String[] splitCustomRecordKey(String recordType, NetSuiteSoapConfig config)
public static Set<org.mule.runtime.api.metadata.MetadataKey> getMetadataKeys()
public static CitizenRecordEnum getRecordEnum(String key)
key - record enum stringpublic static org.mule.metadata.api.model.ObjectType loadStaticMetadata(String qName) throws org.mule.runtime.api.metadata.MetadataResolvingException
qName - qualified name of the XSD elementorg.mule.runtime.api.metadata.MetadataResolvingException - in case no XSD element was foundCopyright © 2025 MuleSoft, Inc.. All rights reserved.